I want to prevent or allow users in certain countries access to the web content that my Amazon CloudFront distribution serves.
Resolution
Allow or block geographic restrictions for countries
Complete the following steps:
- Open the CloudFront console.
- In the navigation pane, choose Distributions, and then select your CloudFront distribution.
- Choose the Security tab, expand CloudFront geographic restrictions, and then choose Edit.
- For Restriction type, choose Allow List to allow countries access to your web content, or choose Block List to block countries.
- For Countries, choose the countries that you want to allow or block.
- Choose Add.
- Choose Save changes.
For more information, see Restrict the geographic distribution of your content.
Use alternate methods to restrict content
You can also use the following methods to restrict access to web content: