3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Block thousands of Ads with HOSTS

Block thousands of Ads with HOSTS
In this instructable, I will show you an easy way to block nearly thousands of advertisements, in one simple, easy method.
 
Remove these adsRemove these ads by Signing Up
 

Step 1About Window's HOSTS File

About Window\
Before we start, it is important to understand exactly what the HOSTS file is.

The HOSTS file is a file with IP addresses, corresponding to a domain name, that windows references and bypasses DNS with.

For a more in-depth explanation, please visit Wikipedia's definition:
http://en.wikipedia.org/wiki/Hosts_file
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Aug 18, 2006. 7:42 PMpurgedsoul says:
If you are using firefox, get the Adblock extension. If you are using IE, get Firefox, then get Adblock.
Dec 6, 2008. 9:45 PMArbitror says:
But the good thing about this, is that It works for ANY browser.
Not saying that firefox is bad...
Jan 1, 2008. 6:55 PMzeero360 says:
If you are using IE, get Firefox, then get Adblockhahahahaha, 1 problem i cant hahahahahahahahalol
Jan 1, 2008. 6:56 PMzeero360 says:
fyi im retarted not really but in a sence
Dec 20, 2007. 6:25 PMErik Andersen says:
I can't agree more with Purgedsoul. I have Firefox (w/ Adblock Plus of course!) and it works like a charm. You might get the noscript extension too so you can visit sites that block Firefox (they don't like the ads bypassed!).
Sep 4, 2007. 6:23 AMJWALLIS says:
I am not an expert, so do correct me if I"m wrong.

Having a large host file can slow a PC down to a crawl.
Use Peerguardian instead ( without logging)

I do keep <10 entries in the host file for an absolute deny policy.

Sometimes, I'll be attacked: My DNS will be changed and Peerguardian (PG) blocks all connections. I examine the address PG is block and put it in my hosts file. If possible, try to remember the site that started everything and block that too.

So - my opinion: keep the hosts file small (unless maybe its on another (*nix ) machine)[proxy?]
Feb 9, 2007. 8:35 PMbinnie says:
should of known how to do that. it looks for .... and replaces it with 127.0.0.1 but, if you set apache up to broadcast on 127.0.0.1, does that mean your site will become the ad? yes think so
Aug 16, 2006. 10:29 PMRyanPotter says:
Yeah, I learned how to do this a year or two ago, and it's nice that there's no ads, but the "This page can not be displayed" things all over can still be a bit annoying. This method is also great for pranking people! Just redirect one site to another... It'll really confuse people!
Feb 9, 2007. 8:36 PMbinnie says:
set up a local server to display what ever you want!
Sep 24, 2006. 4:07 PMzachninme says:
I just block media.fastclick.com (and fastclick.com). Those are the only "intelligent" popups I run into. (The "intelligent" popups popup when you click on something, bypassing most popup blockers.)
Aug 23, 2006. 9:41 PMJP says:
You can do this easily with http://www.dnsredirector.com
Aug 16, 2006. 2:37 PMrotor says:
This will work, but has problems people should be aware of, as detailed here:

http://www.windowsdevcenter.com/pub/a/windows/2004/03/30/hosts.html

In particular, if you use firefox or opera, you'll be waiting a long time for all those connections to localhost to time out.
Aug 16, 2006. 3:24 PMspinach_dip says:
try using 0.0.0.0 instead of 127.0.0.1
Aug 16, 2006. 2:31 PMspinach_dip says:
This is a good deal. I've actually switch to using Adblock + Filterset G updater + my own custom block list. I've done this because it's more flexible, and I can disable it instantly without a reboot or restart of my browser. However, I've started using the Hosts file again because of my stand alone Aggregator was, with all the ads, turning into an aggravator. It's just targeted a bit better.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:Brett