View Full Version : How to block sites
ksns1112
Mar 13, 2008, 01:11 AM
I would like to block a specific web site in my PC. I tried with c:\windows\system32\dreivers\etc\hosts
127.0.0.1 Yahoo! (http://www.yahoo.com) (for example)
But the same get opened with http:://yahoo.com/
I need a permanent solutiion. Can any one help me in this regard
Swaminathan N
Chennai
Clough
Mar 13, 2008, 01:29 AM
What is happening that you feel the need to block the site, please?
NeedKarma
Mar 13, 2008, 03:28 AM
In Internet Explorer:
Tools---->> Internet options..
Then click the security tab...
And select the restricted sites icon ( far right red color)
And then click the sites button...
And add those sites in it...
jstrike
Mar 13, 2008, 02:28 PM
Add a site to the restricted sites in IE won't stop you or anyone else from going to that site (at least not in IE7) and it won't stop someone from using another browser.
In order to use the hosts file you would need to enter more than just Yahoo.
127.0.0.1 Yahoo yahoo.com Yahoo! (http://www.yahoo.com) maps.yahoo.com
Yahoo would be tough to do because of all the subdomains and as I said, Yahoo alone won't do it.
Once you have that done you should close all your browsers down and flush the DNS cache on your computer... the flush is not really necessary but it won't hurt anything either.
After all the browsers are closed open up a dos prompt and type: ipconfig /flushdns. Once that's done try to ping one of the sites you just added... it should resolve to 127.0.0.1.
HTH,
-Jeff
EDIT: My mistake, I just noticed that the editor substituted the link for Yahoo! (http://www.yahoo.com). Make sure you close down all your browser windows after you save the hosts files. If it's still giving you problems try disabling NETBIOS.
ksns1112
Mar 13, 2008, 09:01 PM
What is happening that you feel the need to block the site, please?
I'm working in pvt co. Some of my staff members sit and watch the share market and spent their time comfortably. Nothing else.
I would like to block only two sites
National Stock Exchange of India Ltd. (http://www.nseindia.com)
Bombay Stock Exchange - BSE site for SENSEX, stock quotes and market trend (http://www.bseindia.com)
Clough
Mar 13, 2008, 10:57 PM
Have you tried some of the advice above that has already been given?