More Web Proxy on the site http://driver.im/
Bust Banner Ads with Proxy Auto Configuration
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.
|
Millions and millions (more or less) of banner ads blocked since 1996!
no-ads.zip,
16K bytes
(or
no-ads.tgz,
16K bytes)
Version 6.10
released on
Friday, 2021-Mar-26 08:43:40 CDT
|
Recent changes: 6.10 2021/03/26 clean up whitelist domains, add a few +3-3
6.9 2020/11/23 whitelist cashedge +2-2
6.8 2020/08/22 whitelist adfdevices +2-2
6.7 2020/07/06 updates to whitelist +2-2
6.6 2020/03/30 whitelist adk46er.org +2-2
6.5 2019/02/21 add zergnet and cashstar +6-4
6.4 2018/04/21 cdnativ +3-1
6.3 2017/09/28 block popups from onclkds +2-1
6.2 2017/03/05 block another adserver +2-1
6.1 2016/10/15 Switch from dnsDomainIs() to _dnsDomainIs() due to Firefox bug +371-366
All changes: 6.10 2021/03/26 clean up whitelist domains, add a few +3-3
6.9 2020/11/23 whitelist cashedge +2-2
6.8 2020/08/22 whitelist adfdevices +2-2
6.7 2020/07/06 updates to whitelist +2-2
6.6 2020/03/30 whitelist adk46er.org +2-2
6.5 2019/02/21 add zergnet and cashstar +6-4
6.4 2018/04/21 cdnativ +3-1
6.3 2017/09/28 block popups from onclkds +2-1
6.2 2017/03/05 block another adserver +2-1
6.1 2016/10/15 Switch from dnsDomainIs() to _dnsDomainIs() due to Firefox bug +371-366
5.137 2016/10/15 fake security warning from avstats.com +2-2
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
unblock google-analytics
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
whitelist addons.cdn.mozilla.net
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
5.98 2011/12/09 whitelist vupload.facebook.com +2-2
5.97 2011/12/04 whitelist facebook "upload_popup" +2-2
5.96 2011/10/04 match "popupplayer"; whitelist adf.ly +9-7
5.95 2011/04/13 comment out facebook "hijack" (for now); +17-7
block bogus virusscan attack
5.94 2011/01/29 Facebook is the new evil +18-3
5.93 2011/01/29 last whitelist updates +5-4
5.92 2010/04/21 buysellads +20-11
5.91 2009/12/31 more white +16-11
5.90 2009/12/20 ad servers +7-2
5.89 2009/12/16 updates +8-3
5.88 2009/10/21 add whitelist to negate re_banner +21-6
5.87 2009/04/04 allow popcorn +4-3
catch 'animated_favicon'
5.86 2009/02/01 allow advizia +3-3
5.85 2009/02/01 whitelist tirerack +10-3
5.84 2009/01/03 try to not block guids +12-17
5.83 2008/12/29 change white space +4-4
5.82 2008/12/29 more banner sites +6-1
5.81 2008/12/13 newads +4-2
5.80 2008/11/11 remove extra 'var' +2-2
5.79 2008/11/11 whitelist admission +3-3
5.78 2008/10/23 fix yimg icons +2-1
5.77 2008/10/23 update debug hooks +13-18
5.76 2008/10/23 skip /no-ads/ only +20-8
5.75 2008/10/22 whitelist /no-ads/ itself +2-1
5.74 2008/09/26 block some things that make pages slow +25-3
5.73 2008/08/29 update/ad various re_ variables +39-7
(add re_crud)
5.72 2008/05/20 random new sites +10-3
5.71 2008/04/01 add re_whitelist_domains +27-18
rename my isInDomain() to _dnsDomainIs()
ads at: megaupload, javalobby
5.70 2007/05/11 add 'bypass' setting, default to 'normal' +22-8
5.69 2007/05/11 remove google-analytics and mads.com.com +14-5
5.68 2007/04/02 whitelist 'add', not just 'add.' +2-2
(for addons.mozilla.org)
5.67 2007/03/16 whitelist 'adobe' +7-5
5.66 2006/12/08 updated wunderground whitelist +2-1
5.65 2006/12/02 accumulated changes +25-7
5.64 2006/02/14 misc ads +9-2
5.63 2006/02/14 include /adview +2-2
5.62 2006/02/07 add noadsver +3-3
5.61 2006/02/07 promote.pair.com +2-2
5.60 2005/09/06 whitelist addons.mozilla.org +3-1
5.59 2005/06/04 more garbage sites +3-1
5.58 2005/06/04 whitelist Wunderground weather station banners +3-1
5.57 2005/04/04 use non-greedy RE (?!abc) in host-matching RE +41-30
(Heads-up: this will not workin IE4 or NS4)
5.56 2005/03/21 "cdn" eyewonder +3-1
5.55 2005/02/22 rcm.amazon.com +7-1
5.54 2005/02/22 include ...banner.gif in regex +2-2
5.53 2005/02/01 crossmedia +7-1
5.52 2005/01/10 Update comments to document that blackhole needs to be set to 127.0.0.1:3421 +9-7
if you are running the Windows Blackhole Proxy by Larry Wang.
5.51 2005/01/07 whitelist click2tab; move adserver to re_banner +4-3
5.50 2004/12/28 Fix up the file:/// comments. Add to the LOADED alert. +14-6
5.49 2004/12/09 add some webbug servers +15-4
5.48 2004/11/23 added a bunch more stats sites +21-3
5.47 2004/11/22 Change 127.0.0.1 to 0.0.0.0 (avoid delays on Windows) +59-33
Update lots of comment (i.e., Firefox is supported)
5.46 2004/11/22 localhost=>127.0.0.1 +5-4
make sure not to match hosts with adsl
5.45 2004/11/22 add isInDomain(), but it's not being used yet +21-1
5.44 2004/11/18 zap rightmedia.net +3-2
5.43 2004/11/18 about.com floating ad bar +7-3
5.42 2004/11/17 allow CSS to be loaded from mktw.net for marketwatch.com +3-3
(reported by 'BugByteMan')
5.41 2004/10/29 (fix typo) +2-2
5.40 2004/10/29 techtracker / versiontracker +4-1
5.39 2004/10/24 zap animated ads at freewarepalm +6-2
5.38 2004/10/22 clarify instructions +2-2
5.37 2004/10/22 fix ecomm.dell.com +2-2
5.36 2004/10/17 missed one! +2-1
5.35 2004/10/17 more annoying animated affiliate ads +14-1
5.34 2004/10/14 Add local ("internal") proxy value (similar to whitelist). +60-17
Docment that alert() works on newer versions of Mozilla.
5.33 2004/10/11 more flash ads +5-2
5.32 2004/09/05 various collected updates +25-3
5.31 2004/04/17 no www! +2-2
5.30 2004/04/17 new ad domain +2-1
5.29 2004/04/16 fix typo (reported by Alex Fung) +3-2
Block bravenet ads
5.28 2004/03/23 unicast.net +5-1
5.27 2004/03/23 remove duplicated rule (reported by "stub") +5-6
5.26 2004/03/04 cpu consuming swf ads at hardocp +6-1
5.25 2004/02/20 adserver in path +2-1
(better solution needed)
5.24 2004/02/19 dell popups +4-1
5.23 2004/02/18 fw gliding ads +6-1
5.22 2004/01/19 another ad server +2-1
5.21 2004/01/19 fix case problems reported by David Tinney +3-3
5.20 2004/01/14 remove uses of isInNet() for now +23-7
see http://www.network54.com/Hide/Forum/thread?forumid=223428&messageid=1073481068
5.19 2004/01/05 undo /js/ for anandtech +7-6
5.18 2003/12/19 avsforum +4-1
5.17 2003/11/04 add paypopup.com +2-1
5.16 2003/09/19 add clicks and cashe (from "void") +3-3
5.15 2003/09/10 whitelist SprintPCS +5-2
5.14 2003/08/04 another ifilm redirect +4-2
5.13 2003/07/31 do less work when no-ads is not active +19-14
5.12 2003/07/27 add ifilm +6-1
5.11 2003/07/01 update comments for Mozilla 1.4 and PAC failover +18-8
5.10 2003/06/27 Remember to lowercase all patterns in shExpMatch +13-4
Add IMDB "celeb photos"
5.9 2003/06/17 add marketwatch.com +6-2
clarify .rampidads.com
5.8 2003/06/17 ru4.com +3-1
5.7 2003/06/13 two from Lucio Amorim +3-2
5.6 2003/06/11 block new ads at palmgear +64-44
reformat && sections
fix missing () around yimg.com rule
5.5 2003/06/10 new ads at image.ugo.com +6-1
5.4 2003/06/02 match hostnames starting with "pop" +3-2
in re_adxxx
5.3 2003/05/20 add rn11.com +2-1
5.2 2003/05/06 new no-auto-proxy-cache path +9-8
5.1 2003/05/05 regexp support (this is same as 4.27) +45-35
4.28 2003/05/05 last 4.x: no regexp support (4.14 merged with 4.27) +36-46
4.27 2003/04/30 new Yahoo ads +6-3
4.26 2003/04/28 update blackhole discussion +44-33
4.25 2003/04/23 adtrix.com +4-2
4.24 2003/04/23 More comments +22-38
4.23 2003/04/17 more RE +54-34
4.22 2003/04/16 more RE +27-16
4.21 2003/04/16 more comments +3-3
4.20 2003/04/14 remove 9999 line. now distribute this file using a zip +1-16
4.19 2003/04/02 moved dead-man 9999 line +35-25
4.18 2003/03/27 credit Angus on REs +5-1
4.17 2003/03/27 add whitelist section from InvisiBill +16-4
4.16 2003/03/16 oops had Xanner still! +1-1
4.15 2003/03/13 experimental regexp +7-5
4.14 2003/03/05 googlesyndication.com +2-1
4.13 2003/02/20 new +6-1
4.12 2003/02/15 cleanup +2-74
4.11 2003/02/03 aol +3-1
4.10 2002/12/15 toolbar.aol.com +2-1
4.9 2002/11/12 new comments +16-5
4.8 2002/10/17 eyewonder ads at Yahoo +22-1
aintitcool
4.7 2002/09/23 add new anandtech +8-3
4.6 2002/09/09 add some spammers +14-1
ads at NY Times
4.5 2002/07/26 remove all alert() for the sake of Mozilla and Opera +44-16
Add opera comments
4.4 2002/07/09 back to no-ads.int +2-2
4.3 2002/07/09 changed back to no-ads.int +6-4
4.2 2002/07/08 http://no-ads/off -- wow +28-5
4.1 2002/07/08 framework for new no-ads controls, from "Sean M. Burke" +31-19
3.27 2002/07/08 new ad* from Kevin Roth +31-8
3.26 2002/07/02 add two more +5-1
3.25 2002/06/25 fix typo +2-2
3.24 2002/06/25 add a pile of garbage from register.com +43-1
plus other junk
3.23 2002/06/21 clean up do +46-22
docs
3.22 2002/06/11 zap the ezboard popups (.bravenet.com/jsbanner*) +27-13
3.21 2002/06/11 switch to lower case +21-23
3.20 2002/06/11 remove Geocities logo +19-5
3.19 2002/05/15 more internetfuel - samg@pooder 4:15 PM 5/14/02 +8-1
3.18 2002/05/14 new ezboard sites +5-1
3.17 2002/04/27 add more rules +47-6
3.16 2002/03/28 add more popups +3-1
3.15 2002/03/26 linux comment +4-3
3.14 2002/03/26 more comments +3-3
3.13 2002/03/19 popunders and popups +20-1
3.12 2002/03/19 popups +6-1
bidclix
3.11 2002/02/28 add Dial-p Settings help +6-3
3.10 2002/02/20 update copyright +2-2
3.9 2002/02/20 massive cleanup +108-68
many more
3.8 2002/02/20 more popunders +13-4
3.7 2002/02/13 added many more ads +30-5
3.6 2002/01/27 add vx2.cc +24-14
3.5 2001/11/27 add dell.com +6-4
3.4 2001/11/27 disable "proxy caching" comment +31-4
3.3 2001/11/26 new comments +80-54
3.2 2001/11/26 add yimg +6-2
3.1 2001/11/15 remove "no monies" clause +5-4
2.6 2001/11/15 zap /js/ at anandtech +7-6
2.5 2001/11/07 fix anandtech +25-9
add officemax
2.4 2001/11/06 yap tomshardware +39-14
2.3 2001/09/09 avoid false positive +21-9
checking in debugging version
2.2 2001/05/11 debug off +2-2
2.1 2001/05/11 New layout +143-76
1.24 2001/02/09 add some debugging +74-17
1.23 2000/08/05 added GeoCities +12-13
1.22 2000/07/26 document pointing at a proxy +26-3
1.21 2000/07/22 add more slashdot +10-5
1.20 2000/06/02 more /. +6-1
1.19 2000/05/09 new blocks +4-2
1.18 2000/04/06 comments +33-19
1.17 2000/04/06 IE5->IE +4-4
1.16 2000/04/06 Many new comments +117-33
1.15 2000/04/05 block l90.com +13-5
1.14 2000/03/18 add deja +12-4
1.13 2000/02/21 new comments, adfu + enliven blocked +30-2
1.12 2000/01/27 more comments +47-16
1.11 2000/01/27 copyright +20-6
1.10 1999/11/18 add popup +11-1
1.9 1999/10/26 recent changes +9-8
1.8 1999/06/06 updates +31-16
1.7 1999/05/19 some with /Ads* +6-4
1.6 1999/05/10 more comments +35-23
1.5 1999/05/10 add comments +37-12
1.4 1999/05/10 Add rcs id +1-1
1.3 1999/05/10 Add browser setup +29-1
1.2 1999/05/06 blockstackers +9-3
1.1 1999/05/06 Finally check into RCS
|
|
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
(Chrome, IE, Firefox, 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.
(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
Google group
where people can discuss no-ads.pac and proxy auto configuration.
(this replaces the network54 forum, which remains as an archive)
Starting with Netscape 2.0 (when JavaScript was introduced),
Navigator gained the ability to evaluate a JavaScript function
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.
Mozilla has the
documentation on the Proxy Auto Config JavaScript functions available.
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
interesting problems that JavaScript
makes possible)
In general, it works with all browsers these days, since they all implement
Proxy Auto-Config files.
Please post updates and corrections to
the web forum.
- Chrome
This was working in Chrome 50. (I've not checked since then).
- IMPORTANT! (2017)
-
Similar to Firefox 51, newer Chrome strips the path from the url parameter being passed to the PAC script (in the name of security).
You need to enabel this special preference for no-ads to work:
PacHttpsUrlStrippingEnabled to false.
(untested by me)
- Mozilla, Firefox
It works perfectly with all versions of Mozilla from 1.0 and up,
and with Firefox 1.0 and up.
- IMPORTANT! (2017)
-
As of Firefox 51, it strips the path from the url parameter being passed to the PAC script (in the name of security).
That breaks the basic mechanism that no-ads depends upon.
See this message in the forum for more details.
It should work if you set the preference (under about:config)
network.proxy.autoconfig_url.include_path to true
Alert! this setting is broken in FF51, but fixed in FF52 (released March 2017).
Mozilla older than 1.4 (and Netscape older than 7)
require a black hole proxy.
Newer versions of those browsers (and Firexox) 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).
Recent versions of no-ads.pac use JavaScript regular expression objects.
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
Around IE3,
Microsoft added Proxy Auto Config to Internet Explorer
(their documentation on this used to be at
http://msdn.microsoft.com/library/periodic/period99/faq0599.htm,
but Microsoft has removed it).
I have tested with IE versions 4, 5, 5.5, and 6.
I've stopped testing with IE as of IE8.
With IE5 and later, you can load the PAC file from a file: URL
This form works: file://c:/no-ads.pac.
- IMPORTANT!
-
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.
- IMPORTANT!
-
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
non-ad content.
To prevent this, add the registry key described in MS KB article
Q271361.
To make it easy, you can just download and click on this registry file:
IE-auto-proxy-cache.reg.
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.
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).
- Microsoft Edge
Untested.
- Other browsers
If they have JavaScript and Proxy Auto Configuration support
(like Gecko and Webkit-based browsers),
then this should work.
If you try a browser not listed here, please
post an update on 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
Junkbuster
blockfiles via
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)
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 old 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.
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:
www.yahoo.com/banners/image
&
www.yahoo.com/ads/image
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,
then
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:
- 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.
noproxy,
noproxy.clear.gif,
noproxy.noads.gif
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)
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)
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.
no-ads off
no-ads on
Hint: drag these links to your browser's Link or Personal toolbar.
Sorry, I will not be updating these versions:
no-ads-4.zip
The last revision (4.28) of no-ads.pac that did not use JavaScript regular expressions.
Required for Netscape 2.x, 3.x, and possibly 4.x.
Possibly needed for IE4.x.
|
no-ads-3.zip
The revision (3.27) of no-ads.pac avoiding JavaScript
alert and var statements.
Required for IE3.
| | |
No-ads is not a popup stopper. But, it does stop some popups
(as it prevents the loading of JavaScript source that makes the popup happen).
And on other popups, it doesn't stop the popup window from appearing,
but it stops your browser from loading the content.
Personally, I use FireFox and I enable the
Block Unrequested Popup Windows option.
I mostly never see any popup advertisements.