Advanced Firefox Filtering

December 11, 2005 at 5:46 pm | Posted in General | Leave a comment

When using Firefox, I accumulate a list of domains for filtering out both ads and cookies. After a few weeks using Firefox 1.5, I collected a set of domain names that deserve to be filtered out for their annoying ads, especially the in-line text ads from IntelliTXT.

One can use Adblock for this, but you can “take it up a notch” and use a proxy filter – I found the idea over at MozillaZine. This can be done by creating a text file, inserting the text below, and saving it as a proxy autoconfiguration file (PAC). From Firefox, select Preferences…General tab…Connection Settings and select the “Automatic proxy configuration URL”. Enter the URI to your PAC file (e.g. “file://Users/alex/etc/firefox.pac”) and click Reload.

Matching entire domains is more effective than building a list of individual hosts which seems to be the common way to filter ads.


function FindProxyForURL(url, host) {
  host = host.toLowerCase()
  if (dnsDomainIs(host, ".casalemedia.com") ||
      dnsDomainIs(host, ".adonspot.com") ||
      dnsDomainIs(host, ".adserver.com") ||
      dnsDomainIs(host, ".advertising.com") ||
      dnsDomainIs(host, ".paypopup.com") ||
      dnsDomainIs(host, ".doubleclick.net") ||
      dnsDomainIs(host, ".intellitxt.com") ||
      dnsDomainIs(host, ".interclick.com") ||
      dnsDomainIs(host, ".imrworldwide.com") ||
      dnsDomainIs(host, ".linksynergy.com") ||
      dnsDomainIs(host, ".trafficmp.com") ||
      dnsDomainIs(host, ".yieldmanager.com") ||
      dnsDomainIs(host, ".mediaplex.com") ||
      dnsDomainIs(host, ".serving-sys.com") ||
      dnsDomainIs(host, ".hitbox.com") ||
      dnsDomainIs(host, ".maxserving.com") ||
      dnsDomainIs(host, ".statcounter.com") ||
      dnsDomainIs(host, ".sitemeter.com") ||
      dnsDomainIs(host, ".valueclick.com") ||
      dnsDomainIs(host, ".zedo.com") ||
      dnsDomainIs(host, ".esominiture.com") ||
      dnsDomainIs(host, ".tribalfusion.com") ||
      dnsDomainIs(host, ".webtrendslive.com") ||
      dnsDomainIs(host, ".clicktracks.com") ||
      dnsDomainIs(host, ".roiservice.com") ||
      dnsDomainIs(host, ".searching.com") ||
      dnsDomainIs(host, ".pointroll.com") ||
      dnsDomainIs(host, ".checkm8.com") ||
      dnsDomainIs(host, ".ihost.com") ||
      dnsDomainIs(host, ".falkag.de") ||
      dnsDomainIs(host, ".falkag.net") ||
      dnsDomainIs(host, ".tacoda.com") ||
      dnsDomainIs(host, ".tacoda.net") ||
      dnsDomainIs(host, ".2o7.net") ||
      dnsDomainIs(host, ".affilliatetracking.net") ||
      dnsDomainIs(host, ".netshelter.net") ||
      dnsDomainIs(host, ".fastclick.net"))
    return "PROXY 127.0.0.1:80"
  return "DIRECT"
}

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: