View Full Version : Restrict to http site
grolms
09-23-2003, 08:41 AM
Hi all,
sorry for mz bad englisch . I have questtion about http . Can I restrict access to specific http page for all explorers ( IE6 , Netscape , Opera ) ?
thanx
marek g
Paul S
09-23-2003, 09:43 AM
Hi
Search your HDD for a file called HOSTS (c:\winnt\system32\drivers\etc) and then add the web site address you want to block. For example:
127.0.0.1 www.anysite.com
127.0.0.1 www.anothersite.com
Basically 127.0.0.1 is the loop back address for your local computer, therefore, when the address is typed in your browser looks at the HOSTS file for the name to ip resolution and loops back...no access to the site.
This is only basic and can easily be circumvented. Proxy Server or Firewall Software would provide a better solution.
Hope this helps...
<font color=green>Paul</font color=green>
<font color=blue>mailto:paul@winguides.com (paul@winguides.com)</font color=blue>
motoflop
09-23-2003, 11:59 AM
Even better is to use address 127.0.0.0, because it's invalid address (at least for windows tcp/ip). If you use 127.0.0.1, there is short delay while IE tries to find web server from your local computer. But when you use 127.0.0.0, IE understands right away that there cannot be any server on that address.
grolms
09-24-2003, 01:18 AM
I try it , but not work it . Which computer use host file ? I have define DNS server .
motoflop
09-25-2003, 11:16 AM
All programs using dns names will look first hosts file and after that they send dns queries and/or broadcasts. So even if you use dns server, you can still overload your dns settings by using hosts file.
Paul S
09-26-2003, 03:43 AM
Hi
I have given you the path for the HOSTS file in my post. This is the path for NT based Operating Systems.
Hope this helps...
<font color=green>Paul</font color=green>
<font color=blue>mailto:paul@winguides.com (paul@winguides.com)</font color=blue>
grolms
09-26-2003, 05:59 AM
I try disable checkbox in the connet via proxy server in the IE6 and host is using for translate adress. After I check checkbox for use proxy server then request to translate is send to proxy server and host is not use ...
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.