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 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande