hi friends..
i want to block the internet sites based on its ip address.. for example if i give 192.168.12.1 is google site means that site will be blocked....
how to do that in .net ...
its urgent..
regards
gopal
How to block sites by IP address
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.4K reputationPosted Dec 17, 2008, 5:51 PM EST
You can get an IP address using the following code:
Request.UserHostAddress();
Once you get an IP, you can do whatever you want.