9/4/2005

Tip: Block Access To Web Sites Using Route Command

Filed under: — By Aviran Mordo @ 9:01 pm

If there are some web sites you would like to block users from accessing them, there are few ways you can go. You can use IE content Advisor (but that will not block other browsers), You can use third party tool (such as Firewall – but that costs money in most cases), you can use the Hosts file (will be explained in a future tip) or you can block access to specific sites using the Route command.

Every time you type an address into the browser, the operating system (i.e. Windows) will user a routing table to determine where to send the request (packets). This routing table maps the network, usually directs the packet to your gateway and then to the Internet.

Let’s get to the point. In order to block a web site, you need first to know it’s IP address (you can usually do it by using the ping command), then once you know the IP address you want to block, redirect the address to an unassigned address in your local network.

Example: Lets say you want to block sex.com Using the ping command we find out the IP address for that site is 209.81.7.23, now all we need to do is map that address to an unassigned address in out LAN. Let’s assume that the address 192.168.0.200 is not assigned. So in the command prompt type: Route –p add 209.81.7.23 mask 255.255.255.255 192.168.0.200

Now every time someone will try to access sex.com he will redirected to a non existing address, and will not be able to access that site.

 

Leave a Reply

You must have Javascript enabled in order to submit comments.

All fields are optional (except comment).
Some comments may be held for moderation (depends on spam filter) and not show up immediately.
Links will automatically get rel="nofollow" attribute to deter spammers.

Powered by WordPress