CloudFront HTTP headers

0

I'd like to analyze the number of requests, for example, that contain the HTTP headers that I've included in my CloudFront cache key. How can I do this? For example, when I created my caching policy, I enabled the CloudFront-Is-Mobile/SmartTV/Desktop-Viewer headers because I'd like to see how many requests originate from these different device types. I thought the HTTP header information would be available in CloudFront standard logs, but no such luck. Where to look?

已提問 1 年前檢視次數 450 次
1 個回答
0

Have you tried using AWS WAF in front of your cloud front? Using WAF ACL rule you will be able to filter any custom http header (and it's value) and based on the header/value you can Deny/Accept/Count/CAPCHA the request. You can also insert custom http header before redirecting to down stream system.

https://docs.aws.amazon.com/waf/latest/developerguide/customizing-the-incoming-request.html

profile pictureAWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南