Bust Banner Ads with Proxy Auto Configuration
This is a simple change to the configuration of your web browser,
setting it such that it avoids making connections to
banner advertisement servers and avoids downloading ad images.
If your browser can't connect to the advertisement server,
it can't show you the ad image.
The trick behind this is that it uses a mechanism
already built into most recent browsers
(IE, Netscape, Mozilla, and Opera)
and available on most platforms (Windows, Mac, UNIX).
Simply download and save no-ads.zip.
Extract the no-ads.pac file from the ZIP archive.
It is a plain text file. Open it with an editor or text viewer,
and read the instructions it contains.
Table Of Contents
What Is This?
How Do I Use This?
Where Can I Get Help With This?
How Does This Work?
What Browsers Does This Work With?
How Do I Add URLs To Block?
Does This Work If I Already Use A Proxy?
Why Is This Better Than An Ad-removing Proxy?
Why Is This Better Than A Hosts File?
How Do I Know If It's Working?
Black Hole Proxy Servers
How Do I Deactive no-ads For Just One Site?
Does This Stop Popups / Popunders?
This is the coolest thing I've seen in a long time.
- unsolicited comment from a new user.
Over two million (more or less) banner ads blocked since 1996!
Wednesday, 2016-Jul-06 09:17:20 CDT
5.136 2016/07/06 minor fix of dup +2-4
5.135 2016/07/06 add some more ad networks +5-1
5.134 2016/04/02 block some bous security warnings, like techsupport-verizon.com/itechwyre.com +12-4
5.133 2016/03/03 viewad +2-2
5.132 2016/03/03 add criteo +2-1
5.131 2016/02/28 add smartthings +2-2
5.130 2016/02/12 more malware +4-1
5.129 2016/02/12 some malware sites +6-2
5.128 2016/01/15 add solaredge +3-3
5.127 2015/12/13 whitelist smarttiles.click +2-2
5.126 2015/11/17 allow a special SOCKS proxy for some hosts +15-2
5.125 2015/07/07 added revcontent +3-2
5.124 2015/05/03 whitelist docs +2-2
5.123 2015/04/19 more crap from adsterra +11-1
5.122 2015/04/19 annoying promoted content +5-1
5.121 2015/02/04 disqus +3-2
5.120 2014/11/09 taboola +8-1
5.119 2014/08/20 whitelist wsj.com +2-2
5.118 2014/05/26 allow plugshare's image server +5-3
5.117 2014/05/08 whitelist adventure* +3-3
5.116 2014/04/24 whitelist massdrop +2-2
5.115 2014/04/12 add gmail, gstatic +2-2
5.114 2014/03/24 add chitika.net +2-1
5.113 2014/03/23 add chartbeat.net (tracking) +2-1
5.112 2014/03/23 add projects.wsj.com +2-2
5.111 2014/02/04 add outbrain.com ("you may also like") +4-1
5.110 2013/12/18 Minor cleanup. +5-7
5.109 2013/11/23 whitelist adorama +2-2
5.108 2013/09/30 whitelist css +5-4
5.107 2013/06/04 add extra whitelist +3-3
5.106 2013/05/23 more whitelist rules +3-3
5.105 2013/03/07 other whitelist and blocks +25-9
5.104 2012/10/07 block hideus.in, popadscdn.net; whitelist advantage and www.google.com +7-3
5.103 2012/06/21 add plus.google.com +2-2
5.102 2012/06/11 whitelist code.google.com and feature=banner +16-14
5.101 2012/04/05 whitelist advogato; block dt07.net +5-3
5.100 2012/01/10 don't block hosts starting with "advance" +2-2
5.99 2011/12/09 whitelist android market +2-2
(hint: to open the file on Windows, right-click it and select
Open With, and choose wordpad - do not use notepad)
I've created a
where people can discuss no-ads.pac and proxy auto configuration.
The forum host has started using a gator install on your first visit.
You will not see it you are using no-ads.pac. If you aren't,
do not accept the 'Network54 easyaccess' window
(you will still be able to get into the forum just fine).
for every URL it was about to load.
The purpose of this mechanism is to automatically and dynamically determine
an appropriate HTTP proxy,
where such a proxy might be dependent upon the URL involved.
Netscape has the
My use of Proxy Auto Configuration is to avoid using a proxy.
URLs of known anoying images are sent off to a
black-hole proxy server
which swallows the request (and prevents the image from being loaded).
URLs of actual content are unaffected, and directly handled by the broswer.
(For what it's worth, I came up with this concept back in 1996 when I was looking at
Please post updates and corrections to
the web forum.
Adding URLs to block is easy. It will be obvious once you look at no-ads.pac.
The industrious can even find
a search engine
and directly add those URLs to the blocked list
(if you do, announce your work
in the web forum).
Yes! (See the directions inside the no-ads.pac file)
- Mozilla, Firefox
It works perfectly with all versions of Mozilla from 1.0 and up,
and with Firefox 1.0 and up.
Mozilla older than 1.4 (and Netscape older than 7.)
require a black hole proxy.
Newer versions of those browsers (and Firedox) implement
Proxy auto-config failover,
which allows them to utilize no-ads.pac without a black hole proxy.
- Netscape Navigator
It works with recent Mozilla-based Netscape browsers (6.x and 7.x)
(I've not tested it, but I have many reports of success).
It works with all versions of Netscape Navigator from 2.0
(when I started using this trick)
up to and including 4.0x and 4.7x
(but you should not be using those old browsers anymore).
This will not work on versions of Navigator prior to 4.0
(and may not work on pre-6.x versions of Netscape).
For those old browsers,
use the last version of no-ads without RegExps.
- Internet Explorer
Microsoft added Proxy Auto Config to Internet Explorer
(their documentation on this used to be at
but Microsoft has removed it).
I have tested with IE versions 4, 5, 5.5, and 6.
I still use IE5.5 SP2, as that has proved to be
most stable and reliable version
(it still crashes on me, but not as much as other versions;
this is why I now use Mozilla).
With IE5 and later, you can load the PAC file from a file: URL
This form works: file://c:/no-ads.pac.
I have tested this with IE5.01sp2 (on Win98), IE5.5sp2 (Win98 & Win2K)
and IE6 (on Win2K).
With IE4 and earlier, you need to load the PAC file from an http: URL.
For all versions of IE, you must correct the security settings.
Under Tools->Internet Options, select the Security tab.
Select Local intranet and then click the Sites box.
Then, remove the check mark next to the
include all sites that bypass the proxy server option.
For IE5.5 and later,
you must disable the Auto Proxy Caching mechanism,
as it defeats the ability to to block ad images on servers that also serve
To prevent this, add the registry key described in MS KB article
To make it easy, you can just download and click on this registry file:
Details: This sets the EnableAutoProxyResultCache registry key for the current user.
It also (thanks to InvisiBill)
adds a new group and checkbox to the IE's Internet Options
Advanced tab, that allow you to easily change the setting in the future.
For NT, Win2K, WinXP, you must run it once for each user
on your system using no-ads, as this is a per-user setting
(the same key doesn't work under HKLM).
For IE4, you will possible need to
use the last version of no-ads without RegExps.
For IE3, you will need to
use the last plain version of no-ads.
(I've had one report of no-ads.pac working with IE 3.03.
I've not tried it. I no longer have an IE3 to test against.)
- Opera (6.0 and later)
I have tested with with Opera 6.04 (on Windows 2000). It works.
(Note: if you block Opera's own ads, it will stop working after 2 weeks)
Alternately, you can consider using
Opera's URL filtering hook. (Although, I don't know if that blocks Opera's own ads)
- Other Gecko-based browsers
This should work in any Gecko-based browser,
such as Konqueror in KDE3.
- Other browsers
then this should work.
If you try a browser not list here, please
post an update on the web forum.
It will also work if you already need to use a Proxy Auto Config file,
although that's a little tricky to setup at this time.
See this thread in the forum.
If you use a ad-removing proxy
then (by definition), all of your content
must go through the proxy filter.
This might slow down the loading of pages,
or cause other problems as the proxy is always running.
The Proxy Auto Config mechanism avoids this by avoiding a
proxy altogether for the content you actually care about.
Of course, if you want to control or block cookies,
or dynamically alter content,
then you should try
and skip no-ads.
Some people use an /etc/hosts (or on Windows, hosts.txt)
file to map hostnames of ad image servers to a non-responding address.
The downside to this is that it cannot be used
for a server that serves both ad and non-ad content.
no-ads can block such hosts easily, but it can also just as
easily block some content on those hosts, not all of it,
since no-ads can block based upon the URL, not just the hostname.
Try this test page.
If you can see the picture of me, then no-ads isn't working.
If the picture is blocked, then no-ads is working..
You can also try these test URLs:
If your browser displays Yahoo's Sorry the page was not found,
then no-ads isn't working.
If you are having problems getting no-ads to work,
post a message in the web forum.
The simplest black-hole proxy is one that doesn't even exist.
If you use an address on your local host,
then the request will fail immediately.
This is how no-ads.pac is configured by default,
so if you don't mind seeing a missing image
icon for each image that has been blocked,
you have nothing to change or configure.
This works with Mozilla 1.4, Netscape 7.1, and all versions of IE.
For other browsers, you will need an actual black-hole proxy that somehow
denies every request given to it. It can either return a HTTP 501 error code,
or server up a replacement image for the blocked ad image.
Here are some options:
There isn't a provision to deactive no-ads for just one site.
However, you can deactivate no-ads for your current browser process.
(This was contributed by Sean Burke)
- My simple noproxy shell script
that acts as a blackhole proxy.
It is invoked (on UNIX) via inetd (or equivalent). It can be configured to
return an image,
a redirect to an image,
or an HTTP error code ("501 No Ads Accepted").
Sample images include a clear (blank) image, or a no-ads logo.
Stephen Ostermiller made this image for noproxy that makes it
obvious something was blocked,
and scales well: noproxy.blocked.gif
- Sean Burke has a black-hole script written in Perl (UNIX; can be made to work on Windows)
- Larry Wang has a black-hole program for Windows (and he also offers the source code)
Mozilla always uses one process for all windows/tabs.
IE uses one process per invocation: if you use open in a new window,
the new window is controlled by the same process; but if you click on IE
on the desktop, you get a new process.
Use these special links to deactivate or re-activate no-ads for the current browser process.
Hint: drag these links to your browser's Link or Personal toolbar.
Sorry, I will not be updating these versions:
No-ads is not a popup stopper. But, it does stop some popups
And on other popups, it doesn't stop the popup window from appearing,
but it stops your browser from loading the content.
Required for Netscape 2.x, 3.x, and possibly 4.x.
Possibly needed for IE4.x.
alert and var statements.
Required for IE3.
Personally, I use Mozilla and I enable the
Block Unrequested Popup Windows option.
I never see any popup advertisements.