<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hosts file  Hellllpppppp!!!!!!! in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047577#M6145</link>
    <description>1. see if your web browser is configured with proxy&lt;BR /&gt;2. If it is - then set it to bypass the proxy for these "bad" URLs</description>
    <pubDate>Thu, 14 Aug 2003 09:55:58 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2003-08-14T09:55:58Z</dc:date>
    <item>
      <title>Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047570#M6138</link>
      <description>I am trying to block popup ads. Through my research , I assumed it could be done simply with the hosts file.&lt;BR /&gt;&lt;BR /&gt;Redhat 7.2&lt;BR /&gt;&lt;BR /&gt;xxx.x.xxx.xxx0 someserver.some.net someserver # 0&lt;BR /&gt;xxx.x.xxx.xxx0 someserver.some.net someserver  # 0&lt;BR /&gt;x.x.x.1 someserver.some.net someserver  # 0&lt;BR /&gt;x.x.x.1 email.some.net email  # 0&lt;BR /&gt;x.x.x.1 some 0  # 0&lt;BR /&gt;x.x.x.1 route.some.org route&lt;BR /&gt;xxx.x.xxx.xxx0 mail.some.net 0  # 0&lt;BR /&gt;xxx.x.xxx.xxx0 mail.some.net 0  # 0&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost  # 0&lt;BR /&gt;127.0.0.1   &lt;A href="http://www.doubleclick.com" target="_blank"&gt;www.doubleclick.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the site can still be accessed. What did i do wrong??!!! what are does 0 # 0 mean&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 12 Aug 2003 22:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047570#M6138</guid>
      <dc:creator>manny_9</dc:creator>
      <dc:date>2003-08-12T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047571#M6139</link>
      <description>You want to block a site, use:&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 someserver.some.net&lt;BR /&gt;&lt;BR /&gt;The "# 0" at the end are uselss.&lt;BR /&gt;&lt;BR /&gt;The 'xxx.x.xxx.xxx0' is what's going haywire.  the resolver know's it's not an IP so it ignores it.&lt;BR /&gt;&lt;BR /&gt;It's probably better if you're using a cache (squid) to block it in there however.</description>
      <pubDate>Wed, 13 Aug 2003 00:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047571#M6139</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-08-13T00:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047572#M6140</link>
      <description>it can be done with the host file, in fact there are hostfiles available on the web that have all those "ads" sites listed in one gigantic host file you can just copy to your /etc and off you go.&lt;BR /&gt;&lt;BR /&gt;if you want to do it yourself;&lt;BR /&gt;you have to point them to address 127.0.0.1, that is all. the '# 0' has no effect because it is actualy a comment.</description>
      <pubDate>Wed, 13 Aug 2003 05:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047572#M6140</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2003-08-13T05:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047573#M6141</link>
      <description>Check your /etc/nsswitch.conf. Make sure that the line starting with the word "hosts" does not list "dns" before "files", because in this case the hosts file is only used when the name resolution via dns fails.</description>
      <pubDate>Wed, 13 Aug 2003 06:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047573#M6141</guid>
      <dc:creator>Michael Armbrecht</dc:creator>
      <dc:date>2003-08-13T06:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047574#M6142</link>
      <description>Thanks to everyone!!&lt;BR /&gt;&lt;BR /&gt;I am on my way to work now. Before I go...&lt;BR /&gt;&lt;BR /&gt;Michael,if /etc/nsswitch.conf is using dns. is there still a way to use hosts. or do i have to use iptables. currently i can not make changes (squid). i just need a simple way to block.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 13 Aug 2003 10:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047574#M6142</guid>
      <dc:creator>manny_9</dc:creator>
      <dc:date>2003-08-13T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047575#M6143</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;change the line "hosts" in nsswitch.conf to "files dns". Like this, it first checks /etc/hosts, if it doesn't find the hostname there, it uses dns.</description>
      <pubDate>Wed, 13 Aug 2003 10:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047575#M6143</guid>
      <dc:creator>Michael Armbrecht</dc:creator>
      <dc:date>2003-08-13T10:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047576#M6144</link>
      <description>Okay I am slighly confused.&lt;BR /&gt;here is the nsswitch conf.&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# /etc/nsswitch.conf&lt;BR /&gt;#&lt;BR /&gt;# An example Name Service Switch config file. This file should be&lt;BR /&gt;# sorted with the most-used services at the beginning.&lt;BR /&gt;#&lt;BR /&gt;# The entry '[NOTFOUND=return]' means that the search for an&lt;BR /&gt;# entry should stop if the search in the previous entry turned&lt;BR /&gt;# up nothing. Note that if the search failed due to some other reason&lt;BR /&gt;# (like no NIS server responding) then the search continues with the&lt;BR /&gt;# next entry.&lt;BR /&gt;#&lt;BR /&gt;# Legal entries are:&lt;BR /&gt;#&lt;BR /&gt;# nisplus or nis+  Use NIS+ (NIS version 3)&lt;BR /&gt;# nis or yp  Use NIS (NIS version 2), also called YP&lt;BR /&gt;# dns   Use DNS (Domain Name Service)&lt;BR /&gt;# files   Use the local files&lt;BR /&gt;# db   Use the local database (.db) files&lt;BR /&gt;# compat   Use NIS on compat mode&lt;BR /&gt;# hesiod   Use Hesiod for user lookups&lt;BR /&gt;# [NOTFOUND=return] Stop searching if not found so far&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# To use db, put the "db" in front of "files" for entries you want to be&lt;BR /&gt;# looked up first in the databases&lt;BR /&gt;#&lt;BR /&gt;# Example:&lt;BR /&gt;#passwd:    db files nisplus nis&lt;BR /&gt;#shadow:    db files nisplus nis&lt;BR /&gt;#group:     db files nisplus nis&lt;BR /&gt;&lt;BR /&gt;passwd:     files nisplus&lt;BR /&gt;shadow:     files nisplus&lt;BR /&gt;group:      files nisplus&lt;BR /&gt;&lt;BR /&gt;#hosts:     db files nisplus nis dns&lt;BR /&gt;hosts:      files nisplus dns&lt;BR /&gt;&lt;BR /&gt;# Example - obey only what nisplus tells us...&lt;BR /&gt;#services:   nisplus [NOTFOUND=return] files&lt;BR /&gt;#networks:   nisplus [NOTFOUND=return] files&lt;BR /&gt;#protocols:  nisplus [NOTFOUND=return] files&lt;BR /&gt;#rpc:        nisplus [NOTFOUND=return] files&lt;BR /&gt;#ethers:     nisplus [NOTFOUND=return] files&lt;BR /&gt;#netmasks:   nisplus [NOTFOUND=return] files     &lt;BR /&gt;&lt;BR /&gt;bootparams: nisplus [NOTFOUND=return] files&lt;BR /&gt;&lt;BR /&gt;ethers:     files&lt;BR /&gt;netmasks:   files&lt;BR /&gt;networks:   files&lt;BR /&gt;protocols:  files nisplus&lt;BR /&gt;rpc:        files&lt;BR /&gt;services:   files nisplus&lt;BR /&gt;&lt;BR /&gt;netgroup:   files nisplus&lt;BR /&gt;&lt;BR /&gt;publickey:  nisplus&lt;BR /&gt;&lt;BR /&gt;automount:  files nisplus&lt;BR /&gt;aliases:    files nisplus&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 13:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047576#M6144</guid>
      <dc:creator>manny_9</dc:creator>
      <dc:date>2003-08-13T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047577#M6145</link>
      <description>1. see if your web browser is configured with proxy&lt;BR /&gt;2. If it is - then set it to bypass the proxy for these "bad" URLs</description>
      <pubDate>Thu, 14 Aug 2003 09:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047577#M6145</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-08-14T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047578#M6146</link>
      <description>Your nsswitch.conf is OK - what matters is that for the hosts line, "files" comes first.&lt;BR /&gt;&lt;BR /&gt;The other thing that might be a problem is multiple line entries for 127.0.0.1.  For your example in your original post, consolidate it all on one line, like:&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost &lt;A href="http://www.doubleclick.com" target="_blank"&gt;www.doubleclick.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Thu, 14 Aug 2003 18:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047578#M6146</guid>
      <dc:creator>Nat Guyton</dc:creator>
      <dc:date>2003-08-14T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hosts file  Hellllpppppp!!!!!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047579#M6147</link>
      <description>Thanks to everyone for their help!!! I finally have electricity!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost # 0 &lt;BR /&gt;&lt;BR /&gt;I can't for the life of me grasp why #0 is being used. Adding the site I wish to block after the #0---- how will it work???&lt;BR /&gt;&lt;BR /&gt;Boy do i feel dumb</description>
      <pubDate>Sun, 17 Aug 2003 21:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hosts-file-hellllpppppp/m-p/3047579#M6147</guid>
      <dc:creator>manny_9</dc:creator>
      <dc:date>2003-08-17T21:07:40Z</dc:date>
    </item>
  </channel>
</rss>

