siame
Feb 2, 2010, 10:52 AM
Salut
I want to block access to a site and I used windows:system32/etc
In hosts I enter the asdress and the address IP
but without result!!!!!!!
WallyHelps
Feb 2, 2010, 12:54 PM
The hosts file is used as a sort of "phone book" for your computer. The first column is the IP address and the second column is the human-readable name.
If you want to block a website, you add its name (www.badsite.com) in the second column, but for the IP address you will put 127.0.0.1 which means YOUR computer. This effectively "shorts out" the name lookup for the bad website and blocks access to it.
For example, in your hosts file:
102.54.94.97 rhino.acme.com # This is not blocked
127.0.0.1 www.badsite.com # This is blocked
Note that after editing the hosts file, you should probably reboot the computer for the changes to take effect.
Hope this helps.
WallyH
InfoJunkie4Life
Feb 3, 2010, 09:47 AM
I believe that works on all programs. There is also a way to do program specific, and there are firewalls out there that do the same also.