dotnetnoob
dotnetnoob

Reputation: 11350

Redirect visitors from certain countries to a safe page

I have an ASP.Net website.

The website is purely for customers in the UK, although some of our suppliers may originate in the USA/Canada.

We get a lot of visitors from Africa, China, Russia etc, who quite frankly, we know are up to no good.

I thought of the possibility of detecting the originating country and redirecting to a 'safe page' for blacklisted countries.

I wondered whether this is actually achievable (do to data being available) and if so what mechanism (from a code perspective) would I use in Asp.Net.

Upvotes: 0

Views: 182

Answers (1)

Biby Augustine
Biby Augustine

Reputation: 425

You can use IPInfoDB API to achieve this. For more information and full tutorial visit

http://www.aspsnippets.com/Articles/Find-Visitors-Geographic-Location-using-IP-Address-in-ASPNet.aspx

Upvotes: 1

Related Questions