More Info:

Geo restriction should be enabled for your Amazon CloudFront CDN distribution to whitelist or blacklist a country in order to allow or restrict users in specific locations from accessing web application content.

Risk Level

Low

Address

Security

Compliance Standards

SOC2, GDPR

Triage and Remediation

Remediation

To remediate the misconfiguration “CloudFront Distributions Should Have Geo Restriction Enabled” for AWS using AWS console, follow the below steps:

  1. Log in to your AWS console.
  2. Navigate to the CloudFront service.
  3. Click on the name of the distribution that you want to remediate.
  4. Click on the “Behaviors” tab.
  5. Click on the “Create Behavior” button.
  6. In the “Create Behavior” screen, scroll down to the “Restrict Viewer Access (Use Signed URLs or Signed Cookies)” section.
  7. Click on the “Yes” radio button for “Restrict Viewer Access”.
  8. In the “Geo Restriction” section, click on the “Yes” radio button for “Restrict access to your content by country/region”.
  9. In the “Whitelist” section, select the countries/regions that you want to allow access to your content.
  10. Click on the “Create” button to save the behavior.

Once completed, the CloudFront distribution will have geo restriction enabled.

Additional Reading: