Russia invaded Ukraine on the 24th of February 2022. Belarus offers logistic support to the Russian army. Our company website until the invasion stops. We don't intend to punish our readers from Russia and Belarus but to show dissatisfaction and disapproval of the political and philosophical stance of the Russian government. won't be available in Russia and Belarus Our company and I are in . In addition to being against war, we strongly oppose evil and destructive ideas that support autocracies. Make no mistake, , but a joint effort of individuals who believe it is not you who should be deciding how to live your life. strong supporters and believers individual liberty, free trade, and free association this is not the doing of one man We will continue doing as much as possible to show our support for the Ukrainian people and invite you all to do the same. If you use CloudFront as your CDN, the following tutorial will help you to and block traffic from Russia and Belarus. enable CloudFront Geographic Restrictions If you are using any other CDN or a different provider, send us an email at . I will personally assist you in blocking traffic. hello@crocoder.dev I will show you three ways to block traffic depending on how your CloudFront distribution is provisioned. Manually / AWS Console CloudFormation Terraform Manually / AWS Console Open and choose the distribution. CloudFront Distributions Click on the tab. Click on edit button. Geographic restrictions Check and select from the dropdown Russia and Belarus. Click Save changes. Restriction type - Block list You have just blocked all traffic from Russia and Belarus. All visitors from those locations will get status code. 403 (Forrbidden) CloudFormation If you are deploying the CloudFront via CloudFormation add this code to in CloudFrontDistribution Properties. Restrictions Use the following code snippet: CloudFrontDistribution: Type: 'AWS::CloudFront::Distribution' Properties: DistributionConfig: ... Restrictions: GeoRestriction: Locations: - RU - BY RestrictionType: blacklist Terraform You can easily add restrictions objects to your . aws_cloudfront_distributions Use the following code snippet: resource "aws_cloudfront_distribution" "website_distribution" { ... restrictions { geo_restriction { restriction_type = "blacklist" locations = ["RU", "BY"] } } } Thank you for reading. ❤️🇺🇦 Also published on . CroCoder