PDA

View Full Version : restrict IE pages



hammerjammer
10-08-2003, 04:43 PM
is there a way to restrict a specific web page from being accessed, without using the ratings/content filter (which eats gobs of system resources)?

like i just want to be able to type in a www.<website>.com into a regeistry value (possibly in HKCU_Software_Microsoft_Internet Explorer_Security) and (best-case-scenario) have a 404 error come up every time.

thanx
HJ

Brf
10-09-2003, 07:22 AM
Add that website to the HOSTS file with a value of 127.0.0.1

motoflop
10-09-2003, 12:37 PM
Better to use 127.0.0.0 instead of 127.0.0.1, because first address is invalid and IE knows it.

hammerjammer
10-09-2003, 02:42 PM
that didn't work...

added as follows:

127.0.0.1 friendster.com

then tried
127.0.0.0 friendster.com


neither worked at all..

you are talking about the hosts file in winnt/system32/drivers/etc

right?
HJ

Brf
10-10-2003, 06:54 AM
Yes that is the file. I just tried it now with that name and it blocked the lookup fine. You might need to enable lmhosts lookup on the Connection/TCPIP/Advanced/WINS page.

hammerjammer
10-10-2003, 04:41 PM
lmhosts lookup is already enabled...i just checked to make sure....altering hosts file still does not block http traffic (ie., it still doesn't block users from going to the sites i put in the hosts file)

it DOES, however, block ping, telnet, and tracert requests to that site...so it's sort of working...

HJ

hammerjammer
10-12-2003, 07:30 PM
does anyone have any other ideas?

HJ

motoflop
10-19-2003, 04:57 AM
You cannot block single web pages that way. You can only block whole web site like www.xxx.com. Also test that you don't have virus, which has changed hosts lookup.

hammerjammer
10-21-2003, 05:14 PM
yeah, i am only trying to block the site...not individual pages. DataBasePath seems to be correct as well...

HJ

motoflop
10-22-2003, 11:36 AM
Quit mysterious problem.

You could try to use file monitor from www.sysinternals.com . Start file monitor and then try to ping a address you have added to hosts file. File monitor should show that windows reads host file from \windows\system32\drivers\etc.

hammerjammer
10-22-2003, 04:42 PM
the hosts file is at C:\WINNT\system32\drivers\etc as it has always been

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\DataBasePath=%SystemRoot%\Syst em32\drivers\etc

which should be correct as well

host file looks like this:

127.0.0.1 localhost
127.0.0.1 www.friendster.com
127.0.0.1 www.myspace.com
127.0.0.1 www.companion.yahoo.com

yet i can goto any of these sites no problem...

yes, i have lmhosts enabled
yes, i have tried 127.0.0.0 instead of 127.0.0.1


HJ

ps. what the hell happened to the quick, conveniant dropdown menus for forums on this site?