|
Summary: There are ways to block URLs in IE, but doing so will block them from all other programs as well.
Actually, there is, yes. But when you do it, you'll be blocking them in IE and any other program that might attempt to access them. Interestingly enough, it's the same technique that some viruses use to block you from getting to anti-virus sites. • Normally Windows uses what's called DNS to map a domain name, such as "microsoft.com" to an IP address, like "207.46.130.108". It's easier for you and me to remember domain names, and this also allows the domain name owners to change their internet addresses at will. The "hosts" file is a plain text file that can contain overrides to DNS. In it you can hard-code the IP addresses that domain names will map to. Normally, it's not used at all, but it's a great opportunity to block access to domains you don't want accidental access to. The hosts file is typically found in "c:\windows\system32\drivers\etc\hosts". You may need to change the file's read-only attribute so that you can make changes. Open it in notepad. You should notice an entry like this:
That defines the IP address of "localhost" to be 127.0.0.1, which by definition is your own machine. To block a site, just add a similar entry to the end of the file. For example:
Now "www.badsite.com" is mapped to your machine. Since you're probably not running a web server, any attempt to visit that site using a browser will fail. In fact, ANY attempt to use "www.badsite.com" will get directed to your own machine and will typically fail. The only caveat is that addresses are often cached by the software. That means you may need to exit all instances of your browser, for example, before the blockage becomes apparent. In the worst case, reboot, and it should take effect. By the way, if you open the hosts file and find a long list of what look like anti-virus site domains, you've been infected by a virus and probably want to scan as soon as possible. And feel free to delete those entries from the file. Related:
Article 370 | Posted July 10, 2004 |
Stay Informed Archives Advertisers |
|
•
hey thanks alot for the help i am using this to try and stop CID: pop-ups firstly i this the correct thing to do secondly will itblock all the CID: pop-ups?
Posted by: thomas at March 28, 2008 3:32 PMhow can I block my kids from accessing myspace and all it's subcomponients from my computer, ie. home.myspace.com/comment.myspace.com, etc.
Posted by: Raymond at May 3, 2008 2:01 PMThanks
I am able to get into my mail address but not able to read anything as it wont let me readd into
Posted by: Jennifer at June 17, 2008 11:01 PMany of my inbox,draft,sent etc.
i just get the pop up saying comp had encountered a problem and given a choice to send report or not.
after clicking on any, then i looses my site and have to try to log in again...
Please help
Good Day,
Is there a way that you can block all the URL and allow a certain website only ?
Thank You
Posted by: Dennis Gamara at July 11, 2008 9:37 AM-- dennis
this method pretty much works, but only providing that the end user isn't that innept in the innards of "stuff that is crammed in the computer". Since there are WAYS to get around this.
A more appropriate solution would be to either: write, or find someone that does programming and have them write it for you, that does something similiar *like* this, but a little bit more advanced that involves packet sniffing techniques and does a stealth comparision test on the information passing through the TCP/IP connection. You simply strip out a section of the packets then reassemble them into a string, then test that string against an existing datafile that you specify (either a host, or a specific url). If found then add a section of code that locates the current active window handle (parent handle-your browser), then locates the control handle for url addresses typed or entered, then send a faked click hit on the goto button or whatever its control is labeled or handle is known as. Works great at catching personnel wasting company time & money. This method works down at the hardware level since its capturing raw packets which the browser doesn't control nor see. But all this needs to be done in stealth, or it can be defeated as well. This might be a little bit more than most people could take on as a small project, so either look for something that is already existing and written, or find you a programmer that takes on simple stuff like this and have them write it for you. And sorry, no, i won't write this for you. I've already got ALOT more than what I can handle at the moment as projects goes.
Posted by: anonymous guy at July 18, 2008 6:51 PMLeo, your solution did not work at all. I can still access the site in question :(
I open the host in notepad, find where it says 127.0.0.1 localhost, then make a new line and type in 127.0.0.1 http://www.badsitesname.com saves and exits. But I still can access the site! Please help :(
Posted by: Sunli at August 19, 2008 10:22 PMwith my IE 7.0 it still can acces the site.
diffrent with my firefox 3.0 it can't
My Question is is this for IE article or for the others browser also. TQ
But Thx for the tips.
Posted by: jasow at September 3, 2008 2:30 AMMake sure that you're NOT entering
127.0.0.1 http://www.badsitesname.com/
but that you ARE entering
127.0.0.1 www.badsitesname.com
In fact, to be safe(r), might wanna make it
127.0.0.1 badsitesname.com www.badsitesname.com
Posted by: Thogek at September 17, 2008 12:15 AMThanks,this really helps.
Posted by: ibzy55@yahoo.co.uk at September 30, 2008 3:41 PMI think someone is blocking me from being on popular site called tribe.com Is this possible to block my ip address from the whole tribe network???
Posted by: angie at October 7, 2008 6:28 AM