GlimmerBlocker Logo

GlimmerBlocker

HTTP based ad blocker for Mac OS X

No hacks, no instability
Upgrade Safari whenever you like, no need to wait for an upgraded hack

GlimmerBlocker is no longer maintained and should no longer be used as web sites have migrated from using plain http to using https (i.e. encrypted) which prohibits modification by a proxy unless you resort to install custom SSL certiticates on the client.

You should use a browser extension instead.

It was made as a hobby project during 2007-2008 by Peter Speck. It features both a custom http server and http client and a Mac OS X control panel.

GlimmerBlocker did not only block requests but also allowed for adding custom css and javascript to the pages. It also allowed for modification of the page html before the browser receives the html, which made some modifications much easier than DOM based modifications.

The modify-request javascript is executed by GlimmerBlocker before GlimmerBlocker contacts the web-server.

In the request script, you can:

  1. Send back a text or html page that the script generates.
  2. Send back a redirect response.
  3. Change the dns server used when GlimmerBlocker resolves the the web-servers ip-address.
  4. Change the http/socks proxy used for this request.

In case 1 and 2 the web-server is not contacted as the script short-circuits the request handling.

Useful links

  1. The request/response flow, especially the Modifying Requests section.
  2. The object reference
  3. Proxies