Spent some time today researching/making this. Seems to work very well for me so far.
Works with Konqueror, Firefox, IE, Opera and mayb others
This file will block a wide range of adverts. Its very easy to install and very easy to customize!
To use the file,
1) copy and paste the below code into a "proxy.pac" file.
2) Configure your browsers proxy settings to use a proxy configuration URL (select the proxy.pac file)
3) Start browsing and you will notice many banner ad's are gone!
function FindProxyForURL(url, host)
if ( shExpMatch(host, '*.ad*')
|| shExpMatch(host, '*.ads*')
|| shExpMatch(host, '*banners*')
|| shExpMatch(host, '*doubleclick*')
|| shExpMatch(host, '*googlesyndication*')
return "PROXY 0.0.0.0:8000;";
This script works by checking all url's coming into your browser, if the url contains the word "banners", the script tells your browser to use a proxy that dosent exist.
I have my PROXY point to a webserver (xx.xx.xx.xx:80) where the index.htm page is transparent, this removes any errors you see in place of the adds.
Don't put in too many filters, as a large list does slow you down, however i notice no difference with the defaults.
Hope this is of use