URL block

Hi Peeps,

Can I block a particular URL in XPpro or Win2k? I have tried in the internet properties (restricted site list) but it still lets me browse that particular site.


Who is Participating?

Improve company productivity with a Business Account.Sign Up

thunder_mooseConnect With a Mentor Commented:
Hey there,

The restricted sites thing won't work, because it just restricts what those sites can actually do, and not the sites themselves. For instance, it'll disable Active X controls or scripting or whatever in the page, but you'll still be able to view it.

In order to completely block a page, follow seb_acker's advice. An easy way for you might be the Hosts file method that he suggested. The hosts file contains DNS mappings, so it converts the user-friendly name you type in, into an IP address that the computer understands. The computer checks it FIRST, before checking any DNS servers. So if a entry for the site exists in the hosts file, then it'll try that address. is an address that refers to your own machine (in the hosts file, you'll see that it is mapped to "localhost" that's why you can use a command like ping localhost). So if you put a entry in the hosts file with that IP, it'll look for the site on your computer, won't find it, and won't load it.

Open your hosts file and add the line:                 www.siteyouwanttoblock.com

In the same format as any entries already present, where siteyouwanttoblock represents the site you want to block.

This post was just to clarify the hosts file a bit. Since you're clearly not too worried about somebody being able to change what it says (you used Restricted Sites after all) I suggest using the hosts file method. It's fast, easy and free. If you do use it, give Seb the points since he suggested it first.

I don't know any integrated XP method to block an url.

You have some shareware products, such as URL capture : http://www.finaldownload.com/internet_networking_browsers_url_capture.html


I think you can also block a site by editing the host file (c:\windows\system32\drivers\etc\hosts : without extension )

In it, you can perxemple set  www.microsoft.com
With that, each time your computer resolves www.microsoft.com, it will send you tou yourself...
But you can't use that with a full URL (ie : ww.microsoft.com/default.html ).. it must be a hostname.

Perhaps, you have an other option to block Urls on your router ? OR on your firewall if you have one ?

Asta CuCommented:
You've surely gotten what you need in the above, but find this interesting about URL filtering (not for points), just informative.
Restrict access to non-work-related sites. These third-party solutions integrate with Internet Security and Acceleration (ISA) Server to filter sites that have objectionable or restricted content. These independent companies offer ISA Server–compatible and complementary third-party solutions.

just for a discussion,
even if you use third party software like websense, surfcontrol etc. its really very hard to block somebody totally.
like i work in a secured environment where they dont want us to surf outside.
and everyday we discover a new way of bypassing the security.
like using a proxy
or sites like altavista.com or worldlingo.com to bypass the security.

however if its as simple as blocking the kids then definately editing host file is the easiest way.
university1Author Commented:
Thanks for everybodies input. Its been most helpful.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.