amazon web services - Detect Country of IP address using AWS EC2 and cloudFront only on certain pages -


i using aws ec2 server website. content of website dynamic , of visitors coming specific number of countries.

i'm trying detect country of website visitors through ip addresses. needs performed when visitors reach specific page on website (https://example.com/abc).

i know aws cloudfront offers need through cloudfront-viewer-country header. however, not intend serve whole website behind cloundfront. think problem solved if there way serve single page (https://example.com/abc) through cloudfront. possible achieve ? if so, how ?

what other options have ?

you can have pixel image of cloudfront endpoint on domain pages. everytime user visits, referred pixel called http referrer. (tells page being called)

https://skillcrush.com/2012/07/19/tracking-pixel/

alternatively can add analytics tools google analytics capture lot more information visitors.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -