(Show all Tutorial articles . . .
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Tutorial: How to Block Ads With Adzap


In this article we learn using Adzap with Squid proxy server,we'll see how to install and start using Adzap.

Cameron Simpson's Adzap ( is a Perl program written to match and replaces those annoying web ads.It uses the redirector option of Squid proxy-caching server (, a fast and efficient caching server.

How does Adzap work?

Squid proxy server is designed to cache web content as clients requests,it checks for presence of local copy of request, if found servers it directly.This not only saves bandwidth usage but accelerates web speed.

Squid redirects requested URL to adzapper program which tries to identify ads,unrequested pop-up widows and other unsolicited content using regular expressions.

Most of content such as graphics,flash animations,client-side scripts and executables are matched and quietly replaced.Adzap returns sanitized request back to squid which servers it.This increases the surfing speeds considerably even if you are on boardband connection.

Most commercial web advertisers track user preferences and surfing habits.Adzap protects your privacy by efficiently blocking such ads from loading.

How do you install Adzap?

You can download the latest version of Adzap from

Uncompress the the Adzap files to your /usr/local/ directory.If you use any other directory,please do change the commands in this article.

 $ tar zxvf adzap-20030726.tar.gz -C /usr/local/

Change your directory to /usr/local/adzap.All the adzap programs are found under the scripts directory.

 $ cd /usr/local/adzap/

Edit the scripts/wrapzap file and set the zapper to squid_redirect.You can customize the Adzap to suit your needs in this file.


Configure the squid to use Adzap as its redirector program.The squid configuration file in most *nix's is /etc/squid/squid.conf.Set the redirect_program option as mentioned.

 redirect_program /usr/local/adzap/scripts/wrapzap

Restart the squid server.

 $ /etc/init.d/squid restart

Check the /var/log/squid/cache.log for any errors.Start your favorite browser and point it towards your squid server and enjoy ad free surfing.

Rakesh 'arky' Ambati is a Red Hat Certified Engineer interested in Free Software movement (,he spends time working on technical writing for and coordinating with local Free Software Community activities. He lives in Bangalore,India.

mail this link | score:8881 | -rakish, May 3, 2004 (Updated: September 20, 2004)
More Software articles...

Abstract Art Prints for Sale

apps headlines

How to Install Cinnamon 1.8 on ubuntu 13.04

Tutorial: Install Compiz on The Unity Desktop on Ubuntu 12.04

Install oracle java 7 in ubuntu 12.04

Backup Ubuntu 11.10 with Deja Dup

Three Quake like drop-down terminals for Linux

Integrating Pidgin and Gnome 3

Remove Fortune from Linux Mint terminal

Pianobar: Console radio client

Install Zimbra Collaboration Suite 7 (CentOS 5)

tmux: A GNU Screen Alternative

Install Skype in Ubuntu 11.04


Firefox sidebar

Site map

Site info

News feed


(to post)


Articles are owned by their authors.   © 2000-2012 Ray Yeargin