Solved

Windows XP: Block IP Address

Posted on 2011-03-08
5
692 Views
Last Modified: 2012-05-11
I can block a website by a domain by making a host entry.

How can block a website by IP address?  Is there a file like the host file I can edit?  Is there any way to do this on Windows XP without using third-party software or hardware?
0
Comment
Question by:hankknight
5 Comments
 
LVL 17

Expert Comment

by:houssam_ballout
ID: 35074316
This is a good solution for you:

http://www1.k9webprotection.com/
0
 
LVL 8

Accepted Solution

by:
Acosta Technology Services earned 500 total points
ID: 35074355
Source:  www.internetfixes.com

If there are specific Web sites you want to prevent users from accessing, you could use Internet Explorer's Content Advisor or invest in a third-party solution to block access. But you can also block access to specific Web sites using the Route command to modify the route table.

When you type an Internet address into the browser, Windows XP uses the local route table as a network map to determine where to send the packet. In most cases, the route table directs the packet to the gateway, which then sends it out to the Internet.

However, you can configure the route table to send packets addressed to a certain Web site to a dead end. The result makes it appear as if the site doesn't exist.

To begin, you need the IP address of the Web site to which you want to block access. You also need an unassigned IP address within your local subnet that isn't in use by any computer or device.

For example, let's say that the IP address you want to block is 100.100.100.100, and an IP address on your local subnet that isn't in use is 192.168.100.51. Modify the route table with the following command:

Route -p add 100.100.100.100 mask 255.255.255.255 192.168.100.51
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35074563
Been a while, but I think Windows XP with Service Pack 2 or later includes a firewall, which will definitely do what you're asking.

OpenDNS is a free 3rd party service that can control access to web sites: http://www.opendns.com/

Microsoft's Family Safety also does a decent job of filtering access to websites, and is free: http://www.microsoft.com/security/family-safety/default.aspx#Internet-use

If you wanted to block access to Google, for example, you could put 127.0.0.1 google.com www.google.com in the C:\Windows\system32\drivers\etc\hosts file - which will cause your computer to think google.com is it itself.
0
 
LVL 42

Expert Comment

by:David S.
ID: 35074652
Actually it seems you can use the hosts file to alias one IP address to another, just like you'd set the IP address associated with a domain name.

127.0.0.1  10.23.123.234

Open in new window

0
 
LVL 16

Author Comment

by:hankknight
ID: 35082209
Thank you all for your ideas.  As mentioned in the original post, third-party software is not an option.  Using Route works best for what I need.

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Repair old Windows 2000 boot 15 216
Toshiba Satellite 5 155
Clone HDD in RAID1 10 130
how to copy from computer to usb drive 7 121
There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question