Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Windows XP: Block IP Address

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?
Avatar of Houssam Ballout
Houssam Ballout
Flag of Lebanon image

This is a good solution for you:

http://www1.k9webprotection.com/
ASKER CERTIFIED SOLUTION
Avatar of Aaron
Aaron
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Todd Gerbert
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.
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

Avatar of hankknight

ASKER

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.