Results 1 to 4 of 4

Thread: Using the Windows Hosts File

  1. #1
    Charles_B Guest

    Default Using the Windows Hosts File

    I want to edit the hosts file to block sites that are regarded as undesirable or to block ads.After assigning the loopback IP 127.0.0.1 to an URL that I want to block.
    If I go to Firewall\Blocked Zone\Advanced and check Lock Hosts file.Will this prevent from been hijack from malware.





    Firefox/3.0.5
    XP SP3
    ZoneAlarm Security Suite version:7.0.483.000
    TrueVector version:7.0.483.000
    Driver version:7.0.483.000
    Anti-virus engine version:3
    Anti-virus SDK version:5.0.1.85
    Anti-virus signature DAT file version:966439226
    Anti-spyware engine version:5.0.189.0
    Anti-spyware signature DAT file version:01.200812.5075
    AntiSpam version:5.0.6.8903

  2. #2
    findley Guest

    Default Re: Using the Windows Hosts File


    <blockquote><hr>Charles_B wrote:
    I want to edit the hosts file to block sites that are regarded as undesirable or to block ads.After assigning the loopback IP 127.0.0.1 to an URL that I want to block.
    If I go to Firewall\Blocked Zone\Advanced and check Lock Hosts file.Will this prevent from been hijack from malware.





    Firefox/3.0.5
    XP SP3
    ZoneAlarm Security Suite version:7.0.483.000
    TrueVector version:7.0.483.000
    Driver version:7.0.483.000
    Anti-virus engine version:3
    Anti-virus SDK version:5.0.1.85
    Anti-virus signature DAT file version:966439226
    Anti-spyware engine version:5.0.189.0
    Anti-spyware signature DAT file version:01.200812.5075
    AntiSpam version:5.0.6.8903
    <hr></blockquote>Charles_B,
    The following is thanks to &quot;WATCHER&quot; and replicated here from my notes:
    &quot;You can add to this any website you want to block or add static IP addresses for specific websites to avoid DNS lookups. It makes the Internet faster when viewing specific websites listed here but the downside is that if the IP address for the website changes, and they do, you won't be able to connect to that site. Check first your ZAISS settings. Click Firewall panel, Main tab, then click the Advanced button. In the Advanced Settings dialog box, uncheck, Lock
    hosts file, then OK, before proceeding. This allows you to edit the hosts file
    and save the changes. Be sure afterwards that you check this feature again to prevent others from editing this file. Also, some antispyware utilities by default will alert/block you when trying to change this file so be sure to allow it. The syntax for adding websites is:

    IP Address Hostname(URL) Alias

    To block a website, try this example:

    127.0.0.1 www.yahoo.com Block Test

    Save the file
    with the change. You will no longer be able to connect to Yahoo any more. That's because your browser looks to the
    hosts file
    first before going to a DNS server that most ISPs provide. Remove the entry, save the
    file, and you will have access again.

    To add a static IP address for a website, which is not recommended unless you use a small number of websites regularly and want faster speed in connecting to them,
    click Start, Run, type CMD, then click OK. In the DOS window that appears, type:

    nslookup www.yahoo.com

    and the following IP address will display for Yahoo:

    69.147.114.210

    which you can now use for faster access to this website by typing the following in the hosts file:

    69.147.114.210 www.yahoo.com Static IP Entry

    Note, you do not need to use an Alias which is usually a short explanation as to why you are adding this entry. Also, I use 3 spaces between IP Address, Hostname, and Alias but you can use more but be sure all 3 fields are on the same line. In addition, there are websites out there that post a list of bad websites for use in a
    hosts file
    . You can download these lists and copy and paste them into your hosts file for content filtering. The school that I attended did this. However, the downside to this is that if kids learn about this
    file, and look at the websites listed there, they now have a list of some of the worst pornographic and malicious websites out there and can delete the entry(ies) to view them. You only need look at the names of some of these websites to know they are bad.&quot;
    Findley


  3. #3
    Charles_B Guest

    Default Re: Using the Windows Hosts File

    I do used the nslookup command-line utility to find an IP address for a hostname(URL) to edit hosts file.When I had S&amp;D it had that option of locking the hosts file.I no longer use S&amp;D.This is very good information for me and all Forum readers.


    Thank You for the fast reply and have a nice day.

    Charles_B from the Texas Coastal Bend wishing everyone a Happy New Year

  4. #4
    findley Guest

    Default Re: Using the Windows Hosts File

    Charles_B,

    You're welcome and enjoy your day

    Findley

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •