🚫3 Ways to Geo-Restrict your App

DAY 19 -🚫 3 Ways to geo-restrict your App – Day Nineteen

100 days of Cloud on GitHub – Read On iCTPro.co.nz – Read on Dev.to

In this tutorial i will show demo of , restricting your application to specific country.

📝Prerequsit…


This content originally appeared on DEV Community and was authored by DEV Community

DAY 19 -🚫 3 Ways to geo-restrict your App - Day Nineteen

Image clicktotweetImage Cover

100 days of Cloud on GitHub - Read On iCTPro.co.nz - Read on Dev.to

In this tutorial i will show demo of , restricting your application to specific country.

📝Prerequsite

Access to your WAF, Cloud Front, Route53 and privileges to manage it

🌩️ Using CloudFront

  • Login into Console and goto CloudFront Image Cloudfront
  • Select your cloud front Distribution
    Image distribustion

  • Go to Geographic Restrictions and select edit
    Image edit

  • Select Block list, and type in the country you want to restrict. and click Save changes
    Image restrict

🛡️ Using WAF & Shield

  • Login to console and go to WAF & Shield Image waf
  • Select your Web ACLs and go to Rules. Then Click Add my own rules and rule group
    Image ownrule

  • Select Rule Builder and Name the rule.
    Image name

  • Select inspect as Originates from a country in and type the bad country you want to restrict access.
    Image block country

  • Then select Action as Block then click Add rule.
    Image blockrule

🛣️ Using Route53

  • Here the concept is a bit different rather than blocking them completely , what route53 does is it will redirect traffic from selected country to a diffrent end point which can be an s3 hosted site which says " You don't have access to this website from your country".

    • Check out this Tutorial to see how can you create a website with s3.
    • once you host your site on s3 for the Bad-Country , you can just point it with R53.
  • Login into Console and goto Route53.

    Image r53

  • Click on to your Hosted Zones and select Traffic policies.

  • Now clcik and create Create Traffic Policy

  • Name the PolicyImage name

  • Enter information as shown below. and click Create Traffic Policy

    Image map

  • Select your Domain and Click Create Policy Records

    Image r53policy

Remember there is $50 charge for this so its recommended to use first two options

🎉Congratulations🎉 you have successfully blocked access to your app for a unauthorised Country.

✅Connect with me on Twitter
🤝🏽Connect with me on Linkedin
🧑🏼‍🤝‍🧑🏻 Read more post on dev.to or iCTPro.co.nz
💻 Connect with me on GitHub


This content originally appeared on DEV Community and was authored by DEV Community


Print Share Comment Cite Upload Translate Updates
APA

DEV Community | Sciencx (2022-03-08T02:47:14+00:00) 🚫3 Ways to Geo-Restrict your App. Retrieved from https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/

MLA
" » 🚫3 Ways to Geo-Restrict your App." DEV Community | Sciencx - Tuesday March 8, 2022, https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/
HARVARD
DEV Community | Sciencx Tuesday March 8, 2022 » 🚫3 Ways to Geo-Restrict your App., viewed ,<https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/>
VANCOUVER
DEV Community | Sciencx - » 🚫3 Ways to Geo-Restrict your App. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/
CHICAGO
" » 🚫3 Ways to Geo-Restrict your App." DEV Community | Sciencx - Accessed . https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/
IEEE
" » 🚫3 Ways to Geo-Restrict your App." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/. [Accessed: ]
rf:citation
» 🚫3 Ways to Geo-Restrict your App | DEV Community | Sciencx | https://www.scien.cx/2022/03/08/%f0%9f%9a%ab3-ways-to-geo-restrict-your-app/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.