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 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen