Murty's Ad Blocker

Introduction:

Works well with UNIX/Linux. Almost well with Windows.

1. Blocks Ads
2. Works evenif you are behind a proxy server.
3. Easy to install.

Installing under UNIX/Linux :

1. Make a directory and download the file(s) into it.
2. Edit the script as follows:
Adjust #!/usr/bin/perl at the top of the script such that it points to your perl location.If you are planning to use Ad Blocker on a single computer connected to Internet such as your home computer, skip to Step 3.
Set $host to the IPADDRESS of your machine on which you plan to run this program
If you are not behind any proxy, then set $noproxy to 1 (one)
If you are behind a proxy, set $pproxy to the fully qualified name of your proxy and $pport to the port number of your proxy
If your above proxy does not use a proxy auto config file (pac file), then set $nopac to 1 (one)
3. Launch mblocker
chmod +x mblocker.pl
nohup ./mblocker.pl &

4. Set Your Netscape to use Automatic Proxy: http://IPADDRESS:8001/
Set Your Internet Explore to use Automatic Config Script: http://IPADDRESS:8001/
Where IPADDRESS is the IP Address of the machine on which you plan to run this program.

TIP: If you are a home user with single computer, use 127.0.0.1 as your IPADDRESS while editing the script and while setting your browser preference as explained above. This saves home users with dynamic IP Address the trouble of editing script everytime their IP changes.

Installing under Windows :

You should have ActivePerl installed first (http://www.activestate.com)

1. Make a folder foldername and download the file(s) into it.
Click on Start , then click Run, then type CMD (type COMMAND if you are using Windows 95)
Now it should open a DOS Window. Change directory to the folder into which your downloaded by typing cd foldername
2. If you are planning to use Ad Blocker on a single computer connected to Internet such as your home computer, skip to Step 3. Edit the main script as explained below by typing: edit mblocker.pl
Set $host to the IPADDRESS of your machine on which you plan to run this program
If you are not behind any proxy, then set $noproxy to 1 (one)
If you are behind a proxy, set $pproxy to the fully qualified name of your proxy and $pport to the port number of your proxy
If your above proxy does not use a proxy auto config file (pac file), then set $nopac to 1 (one)
Now save and exit editor (Alt-F,Save,Alt-F,Exit)
3. Now type: perl mblocker.pl or wperl mblocker.pl if this does not work double click on mblocker.pl on your desktop.
Minimize DOS Window (If you hate dealing with this DOS window, use the latter format to launch mblocker, i.e., wperl mblocker.pl )
If you want to install this as windows service, you probably need something like Windows Service Installer.
4. Set Your Netscape to use Automatic Proxy: http://IPADDRESS:8001/
Set Your Internet Explore to use Automatic Config Script: http://IPADDRESS:8001/

TIP: If you are home user with single computer, use 127.0.0.1 as your IPADDRESS while editing the script mblocker.pl and while setting your browser preference as explained above.This saves home users with dynamic IP Address the trouble of editing script everytime their IP changes.

5. If you are using Internet Explorer, you also need to disable Auto Proxy caching on Windows operating system. Here is how: Start -> Run -> Regedit.

Look for the following Key exactly.

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings

If this does not exist exactly as shown, create it by creating the intermediate directory names such as Windows, CurrentVersion as needed.

Value: EnableAutoproxyResultCache
Type: REG_DWORD
Data value: 1 (or not key present)
Set the Data value to 0 (zero). Now close registry editor

Licence :

Free for non-commercial use. For commercial use, please contact me first and I may grant you permission to use for free

Disclaimer :

No warranty. Use at your own risk.


© Murty Rompalli
All rights reserved