URL block

Posted on 2004-10-07
Last Modified: 2008-03-17
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.


Question by:university1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

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

You have some shareware products, such as URL capture :


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
With that, each time your computer resolves, it will send you tou yourself...
But you can't use that with a full URL (ie : ).. 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 ?


Accepted Solution

thunder_moose earned 50 total points
ID: 12247641
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:       

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.

LVL 27

Expert Comment

by:Asta Cu
ID: 12250674
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.

Expert Comment

ID: 12255623
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 or to bypass the security.

however if its as simple as blocking the kids then definately editing host file is the easiest way.

Author Comment

ID: 12257655
Thanks for everybodies input. Its been most helpful.



Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 PRo Upgrade 21 85
NTP Server in VMware 5 387
Diskpart on new HP Probook 650 G2 won't recognize USB thumb drives 6 340
Exchange 2007 standard - defrag (eseutul /d) 10 66
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

749 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