When you are running a website, by default, it is accessible to visitors from all over the world. And while this has its benefits, sometimes, the content and information it provides is not relevant to everyone. There are times when you just want to block visitors from some countries for that purpose or just want to manage your website traffic better. A good use of this, for example, is when you want to host a local competition or contest and you don't want to allow visitors from other countries, but only from your own.
First off, you need to have a GeoDNS subscription. Then you need to follow these simple steps:
1. Navigate to your GeoDNS zone.
2. In the zone's control panel, add a new A record.
3. In the record's settings, type as follows:
Location: Here, choose the country, you wish to block visitors from
TTL: 1 Hour
Points to: 127.0.0.1