<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Block Advertisements in ANY Browser via /etc/hosts</title>
	<atom:link href="http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/</link>
	<description>Enhancing your Ubuntu experience!</description>
	<lastBuildDate>Fri, 11 May 2012 05:04:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Nono</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-15342</link>
		<dc:creator>Nono</dc:creator>
		<pubDate>Sat, 14 Apr 2012 07:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-15342</guid>
		<description>http://zelut.org/projects/misc/hosts is empty</description>
		<content:encoded><![CDATA[<p><a href="http://zelut.org/projects/misc/hosts" rel="nofollow">http://zelut.org/projects/misc/hosts</a> is empty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agena 21</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-12144</link>
		<dc:creator>Agena 21</dc:creator>
		<pubDate>Sat, 23 Oct 2010 22:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-12144</guid>
		<description>######################################

This will make LIFE simple, for UBUNTU  or LINUX MINT users:

Open a terminal, then copy and paste this below:

sudo gedit /etc/hosts

[] Now got to this website below and copy and paste the text into your &quot;HOSTS&quot; file after  deleting the existing text from gedit in your existing hosts file:

http://www.mvps.org/winhelp2002/hosts.txt

[] Do this once a month as they update the info...

[] Now press  SAVE in gedit, and reboot... you will be protected once you reboot from the bad sites in your now updated HOSTS file...  simple no? Enjoy, I do.

########################################</description>
		<content:encoded><![CDATA[<p>######################################</p>
<p>This will make LIFE simple, for UBUNTU  or LINUX MINT users:</p>
<p>Open a terminal, then copy and paste this below:</p>
<p>sudo gedit /etc/hosts</p>
<p>[] Now got to this website below and copy and paste the text into your &#8220;HOSTS&#8221; file after  deleting the existing text from gedit in your existing hosts file:</p>
<p><a href="http://www.mvps.org/winhelp2002/hosts.txt" rel="nofollow">http://www.mvps.org/winhelp2002/hosts.txt</a></p>
<p>[] Do this once a month as they update the info&#8230;</p>
<p>[] Now press  SAVE in gedit, and reboot&#8230; you will be protected once you reboot from the bad sites in your now updated HOSTS file&#8230;  simple no? Enjoy, I do.</p>
<p>########################################</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Cog</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-11201</link>
		<dc:creator>The Cog</dc:creator>
		<pubDate>Sun, 13 Jun 2010 12:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-11201</guid>
		<description>The trouble with using 127.0.0.1 is that your browser queries your own PC (it&#039;s the &quot;loopback&quot; address, after all). If you&#039;re running a webserver on your PC then it will query that webserver. Even if you don&#039;t run a webserver, it will try to connect to port 80 every time, and get refused.

If you use address 127.0.0.0 instead, then the connect attempt from the browser fails immediately without ever sending a connect request.</description>
		<content:encoded><![CDATA[<p>The trouble with using 127.0.0.1 is that your browser queries your own PC (it&#8217;s the &#8220;loopback&#8221; address, after all). If you&#8217;re running a webserver on your PC then it will query that webserver. Even if you don&#8217;t run a webserver, it will try to connect to port 80 every time, and get refused.</p>
<p>If you use address 127.0.0.0 instead, then the connect attempt from the browser fails immediately without ever sending a connect request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-9320</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 29 Jul 2009 14:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-9320</guid>
		<description>Cool, guys.  I&#039;m kinda new to Linux - that is, I&#039;ve gotten rather used to it, but I don&#039;t know enough about it to muck around with config files without guidance.  I ALWAYS look for a how-to before diddling with stuff, lol 
 
I knew how HOSTS works in Windows, and I knew that hosts in Linux was supposed to do the same thing.  But, I didn&#039;t have a clue where to look for it.   
 
I&#039;ve got it working now.  Unfortunately, zelut.org seems to be down, or having problems.  All I get over there is a front page, and a bunch of 404 errors.  No real problem, though, because I have a pretty good, updated HOSTS file on a Windows machine.  I just copied it over to the Linux box. 
 
Thanks! </description>
		<content:encoded><![CDATA[<p>Cool, guys.  I&#039;m kinda new to Linux &#8211; that is, I&#039;ve gotten rather used to it, but I don&#039;t know enough about it to muck around with config files without guidance.  I ALWAYS look for a how-to before diddling with stuff, lol </p>
<p>I knew how HOSTS works in Windows, and I knew that hosts in Linux was supposed to do the same thing.  But, I didn&#039;t have a clue where to look for it.   </p>
<p>I&#039;ve got it working now.  Unfortunately, zelut.org seems to be down, or having problems.  All I get over there is a front page, and a bunch of 404 errors.  No real problem, though, because I have a pretty good, updated HOSTS file on a Windows machine.  I just copied it over to the Linux box. </p>
<p>Thanks! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeanPC</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8973</link>
		<dc:creator>SeanPC</dc:creator>
		<pubDate>Wed, 10 Jun 2009 21:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8973</guid>
		<description>Excellent Work. I can now use Arora browser full time! </description>
		<content:encoded><![CDATA[<p>Excellent Work. I can now use Arora browser full time! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8806</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 25 May 2009 22:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8806</guid>
		<description>sudo mv /etc/hosts /etc/hosts.orig
sudo wget -c http://zelut.org/projects/misc/hosts -O /etc/hosts

is bad.
- For a while there your system has not hosts file. This could be bad news if wget needs it to find your proxy :-)
- Nothing from your original hosts file is retained.
- wget is run as root.

# get the file using a non-root account
wget -c http://zelut.org/projects/misc/hosts -O ~/hosts
# CHECK IT!
less ~/hosts
# backup your old hosts file
sudo cp /etc/hosts /etc/hosts.orig
# append the new one to your hosts file
cat ~/hosts &#124; sudo tee -a /etc/hosts</description>
		<content:encoded><![CDATA[<p>sudo mv /etc/hosts /etc/hosts.orig<br />
sudo wget -c <a href="http://zelut.org/projects/misc/hosts" rel="nofollow">http://zelut.org/projects/misc/hosts</a> -O /etc/hosts</p>
<p>is bad.<br />
- For a while there your system has not hosts file. This could be bad news if wget needs it to find your proxy <img src='http://ubuntu-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
- Nothing from your original hosts file is retained.<br />
- wget is run as root.</p>
<p># get the file using a non-root account<br />
wget -c <a href="http://zelut.org/projects/misc/hosts" rel="nofollow">http://zelut.org/projects/misc/hosts</a> -O ~/hosts<br />
# CHECK IT!<br />
less ~/hosts<br />
# backup your old hosts file<br />
sudo cp /etc/hosts /etc/hosts.orig<br />
# append the new one to your hosts file<br />
cat ~/hosts | sudo tee -a /etc/hosts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8761</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 20 May 2009 01:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8761</guid>
		<description>Thanks for this Christer, it works great on my Jaunty system and I have not noticed any change in performance,  just dont have the advertisements anymore and thats what this is about. </description>
		<content:encoded><![CDATA[<p>Thanks for this Christer, it works great on my Jaunty system and I have not noticed any change in performance,  just dont have the advertisements anymore and thats what this is about. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arkadi</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8757</link>
		<dc:creator>Arkadi</dc:creator>
		<pubDate>Tue, 19 May 2009 19:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8757</guid>
		<description>Thanks for the information, but i really like Firefox and wish every body would use it, so please live Firefox alone! </description>
		<content:encoded><![CDATA[<p>Thanks for the information, but i really like Firefox and wish every body would use it, so please live Firefox alone! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8735</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 16 May 2009 16:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8735</guid>
		<description>Yeah, you&#039;re right the performance hit is pretty minimal. Just as an experiment, I made a file with 15,000 lines, and then did a grep for one of the lines towards the end. Using the time command, it took about 0.1s for grep to find the line. So I guess that&#039;s not a huge hit really, and you&#039;re right that&#039;s got to be faster than the DNS lookup that would happen otherwise. 
 
Sometimes it&#039;s useful to /know/ that something was blocked, like, for example on your site I had no idea until I was blocking it until I browsed around and saw your request to turn off ad-blocking. Which makes me wonder...how would one create an exception to a rule with this system? Did you just shoot your advertising in the foot? </description>
		<content:encoded><![CDATA[<p>Yeah, you&#039;re right the performance hit is pretty minimal. Just as an experiment, I made a file with 15,000 lines, and then did a grep for one of the lines towards the end. Using the time command, it took about 0.1s for grep to find the line. So I guess that&#039;s not a huge hit really, and you&#039;re right that&#039;s got to be faster than the DNS lookup that would happen otherwise. </p>
<p>Sometimes it&#039;s useful to /know/ that something was blocked, like, for example on your site I had no idea until I was blocking it until I browsed around and saw your request to turn off ad-blocking. Which makes me wonder&#8230;how would one create an exception to a rule with this system? Did you just shoot your advertising in the foot? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dfpoon</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comment-8732</link>
		<dc:creator>dfpoon</dc:creator>
		<pubDate>Sat, 16 May 2009 15:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075#comment-8732</guid>
		<description>Firefox is getting unstable? Maybe it is problem of &quot;places.sqlite&quot; storing too much info. 
 
Here is a possible way to do it: 
&lt;a href=&quot;http://forum.moztw.org/viewtopic.php?p=146834&quot; target=&quot;_blank&quot;&gt;http://forum.moztw.org/viewtopic.php?p=146834&lt;/a&gt; (It is a traditional chinese page) 
Google tranlated as following:  
&lt;a href=&quot;http://translate.google.com/translate?js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fforum.moztw.org%2Fviewtopic.php%3Fp%3D146834&amp;sl=zh-CN&amp;tl=en&amp;history_state0=&quot; target=&quot;_blank&quot;&gt;http://translate.google.com/translate?js=n&amp;pr...&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Firefox is getting unstable? Maybe it is problem of &quot;places.sqlite&quot; storing too much info. </p>
<p>Here is a possible way to do it:<br />
<a href="http://forum.moztw.org/viewtopic.php?p=146834" target="_blank">http://forum.moztw.org/viewtopic.php?p=146834</a> (It is a traditional chinese page)<br />
Google tranlated as following:<br />
<a href="http://translate.google.com/translate?js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fforum.moztw.org%2Fviewtopic.php%3Fp%3D146834&amp;sl=zh-CN&amp;tl=en&amp;history_state0=" target="_blank"></a><a href="http://translate.google.com/translate?js=n&#038;pr" rel="nofollow">http://translate.google.com/translate?js=n&#038;pr</a>&#8230; </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (User agent is rejected)
Database Caching 2/13 queries in 0.013 seconds using disk: basic
Object Caching 324/343 objects using disk: basic

Served from: ubuntu-tutorials.com @ 2012-05-25 04:42:35 -->
