Help! Ensure website opens from certain location

Not open for further replies.


Broken In
Hello Friends,

I am learning ASP.NET. Anybody know if i want to open my website from only certain city.. means Can i restrict ppl from opening my website from other cities than certain selected city?

Help needed urgently..

Thanks in advance..



Commander in Chief
You have to look at the visitor's information. Particularly their IP range and hostmasks at times.

Here's a list of Indian IP ranges from here:

Read as:
ip.start.range ip.end.range

If your visitor's ip is within these ranges you can show a particular page, else not.

I think there are several scripts to automatically lookup a visitor's country, you may use that as well to determine.
Not open for further replies.
Top Bottom