Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Security (https://www.askmehelpdesk.com/forumdisplay.php?f=476)
-   -   I don't know how I use hosts (https://www.askmehelpdesk.com/showthread.php?t=442258)

  • Feb 2, 2010, 10:52 AM
    siame
    I don't know how I use hosts
    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!!!!!!!
  • Feb 2, 2010, 12:54 PM
    WallyHelps

    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:
    Code:

    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
  • Feb 3, 2010, 09:47 AM
    InfoJunkie4Life
    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.

  • All times are GMT -7. The time now is 09:23 PM.