<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ubuntu Tutorials &#187; adware</title>
	<atom:link href="http://ubuntu-tutorials.com/tag/adware/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntu-tutorials.com</link>
	<description>Enhancing your Ubuntu experience!</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:08:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Block Advertisements in ANY Browser via /etc/hosts</title>
		<link>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/</link>
		<comments>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/#comments</comments>
		<pubDate>Fri, 15 May 2009 16:57:49 +0000</pubDate>
		<dc:creator>Christer Edwards</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[adware]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[malicious]]></category>
		<category><![CDATA[spyware]]></category>

		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=1075</guid>
		<description><![CDATA[I have been getting more and more tired of Firefox lately. Tired of the bloat. The unreliability. The gecko engine. I&#8217;ve been tinkering with alternate browsers such as Midori (which is *great*, assuming you can get &#62;=0.1.6), Arora and Chromium. I think WebKit is the browser engine of the future, and with these browsers it [...]]]></description>
			<content:encoded><![CDATA[<p>I have been getting more and more tired of Firefox lately. Tired of the bloat. The unreliability. The gecko engine. I&#8217;ve been tinkering with alternate browsers such as Midori (which is *great*, assuming you can get &gt;=0.1.6), Arora and Chromium. I think WebKit is the browser engine of the future, and with these browsers it is <em>nearly</em> a reality. They are still a little rough around the edges, but I can honestly see one of them absolutely taking off by the end of this year. Firefox, prepare to be dethroned!</p>
<p>The one missing link in most users transition to a new browser however is their reliability on extensions. I know I have a few extensions that I really don&#8217;t like to live without. I bet you do as well. Let me guess what your number one extension is? AdBlock Plus? So, if these new browsers don&#8217;t have an extension architecture (yet), how can I block ads? You can use your /etc/hosts file.</p>
<p>Let me tell you, quickly, about the /etc/hosts file for those that may not be familiar. The <em>/etc/hosts</em> file is the predecessor to the DNS system that we use now. It is a local mapping of IP address to hostname. At this point, as we now rely on DNS, the <em>/etc/hosts</em> file is generally pretty empty. You&#8217;ll likely just have entries that make sure your machine can find itself by localhost or hostname. Something along the lines of:</p>
<blockquote><p><code>127.0.0.1    localhost  hostname</code></p></blockquote>
<p>Now, you might be thinking &#8220;How am I going to block all the internets advertisements if my <em>/etc/hosts</em> file looks like that?&#8221; Well, you won&#8217;t, if it just looks like that. I have a solution for you though, and it requires very little work on your part.</p>
<p>In searching for a solution I have come across an <em>/etc/hosts</em> file that is (minus comments) 15,169 lines long. That&#8217;s right. Fifteen thousand one hundred sixty nine lines long. That is a lot of mapped IP addresses! What someone has done is collect every nasty thing he could find into the hosts file, and map it to 127.0.0.1.</p>
<p>What does that actually mean? It means that anytime your browser is told to display an ad it&#8217;ll need to look up the address. The <em>/etc/hosts</em> file is checked first <em>before</em> DNS, which then tells it to ask the local machine. The local machine, of course, does not have that information to display and therefore nothing is displayed. Bingo! No more ads.</p>
<p>But wait, there&#8217;s more! This not only applies to blocking ads, but also banners, 3rd party cookies, 3rd party page counters, web bugs, and even most hijackers. You&#8217;re not only blocking advertisements, you&#8217;re outright blocking thousands of known problematic and malicious websites. And all this without requiring a single Firefox extension. It works in <strong>ANY</strong> browser.</p>
<p>So, I hope you&#8217;re wondering where you can get a copy of this magical file that solves all of the worlds woes. Well you can get it here of course!</p>
<p><strong>disclaimer</strong>: <em>I am not the original author of this file, but it has been published under a CC-BY-SA license and under that license I am redistributing it. Attribution is contained within the file itself.</em></p>
<blockquote><p><code>sudo mv /etc/hosts /etc/hosts.orig</code></p>
<p>sudo wget -c http://zelut.org/projects/misc/hosts -O /etc/hosts</p></blockquote>
<p>These commands will move your original file as a backup and then pull the file from the web, putting it directly where it needs to go. You should be ready-set-protected after completion of the second command. Pull up a browser (hopefully you&#8217;ll try something other than Firefox), and give it a try.</p>
<p>If you have anything to add or subtract from the hosts file, you may edit it directly with a text editor. If you&#8217;d like to share your changes with the rest of us you may email me your update in the form of a patch. Please make sure your patch is created against the <a title="latest version - super hosts file" href="http://zelut.org/projects/misc/hosts">latest version</a>.</p>
<p>I hope this solution works for many of you towards trying out and helping improve alternate browsers. Again, I highly suggest Midori or Arora as GTK or Qt (respectively) WebKit based browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu-tutorials.com/2009/05/15/block-advertisements-in-any-browser-via-etchosts/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</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/12 queries in 0.014 seconds using disk: basic
Object Caching 249/265 objects using disk: basic

Served from: ubuntu-tutorials.com @ 2012-02-09 12:46:44 -->
