Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hello dear friends

my name is aman i am a devleoper /learner of asp.net i am developing a website of US Client in which client wants that my website couldnt open in india so what i have to do for this could please give me some idea and list of ip on behalf of that i can block it and my website dispaly a page with message country not allowed

thanking you

Amandeep
Posted

Have you tried google?

Googling "disallow your website from opening in a country" took me to a website that will generate the code for you based on a specific country.

If you can't use google, what are you doing building a webpage for someone?
 
Share this answer
 
Just resolve the IP address using the Database:
http://www.google.co.in/url?sa=t&source=web&ct=res&cd=1&ved=0CAwQFjAA&url=http%3A%2F%2Fipinfodb.com%2Fip_database.php&ei=DVd8S4qlGcO-rAecsMmvBg&usg=AFQjCNHSaPC2vTTUnSLZqGhcBj3BxN7IFg&sig2=dTj1xuJHycg3K5DZ0IrsTA[^]

Once you detect the IP address, you can easily transfer the page to some Error page to show unauthorized message.

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900