Geo-fencing Users With Lambda @ Edge and CloudFront
With the looming onset of the EU’s General Data Protection Regulation, redirection based on whether or not the user’s IP is in the EU has become a desirable feature.
I wrote this article to teach you, brave engineer, how you can perform this detection and redirection with zero changes to your application code, using AWS Lambda @ Edge and CloudFront.