Saturday, September 1, 2007

Universal AdSense Block Method

The first method, I call the "Universal" method because it blocks adsense at the operating system level (not at the browser level) so it works with any browser you have installed on your computer and works with most popular operating systems (i.e. Windows, Mac OSX, Linux, FreeBSD, etc).

This method works by fooling your local computer into thinking that the Google AdSense servers are hosted on your local machine instead of at Google. Since your local machine cannot respond to requests for the Google Ads, the requests would be blocked and the results is the Google Ads won't be displayed.

To get a little more technical, they way we "fool" your computer into thinking that Google AdSense servers are hosted locally is by adding an entry to a special file called the "hosts" file that is used by your computer to map names to internet addresses. This file is consulted first by your computer, so if we were to add an entry in this file to map the name of the domain that Google uses to serve up AdSense Ads to the address of your local computer, there would be no need to go out on the internet to find out this information.

For more detailed instructions on modifying the "hosts" for your operating system see below:

Windows 2000/XP
  1. Go to Start -> Run
  2. Type in "C:\WINDOWS\system32\drivers\etc"
  3. Click OK
  4. Go to Start -> Porgrams -> Accessories -> Notepad
  5. Drag the "hosts" file to Notepad
  6. Add the following entry on a new line "*.googlesyndication.com 127.0.0.1"
  7. Save the file in Notepad*

* Note you must have Administrator privilege to save the file.

5 comments:

Abdelrahman Ellithy said...

you publish adsense and learn us how to not to show ads !!!

Unknown said...

Hi great post!
not working on google chrome.any tips?
but did it on internet explorer and working fine.
why should I display irritating google ads when i dont get a single penny? this should be done by every one in this planet.

Twisted_Code said...

thank you so much for explaining how to do this. This will surely come in handy in helping boycott Google advertisements. Their new Orwellian search rating policy (which you can learn more about here) disgusts me. In protest, I'm boycotting the search engine and the advertisement service funding it.
I considered also boycotting YouTube, but I figure my reasons for boycotting the other two don't apply there anyway:
[*]ABP seems to be blocking all advertisements I would see on videos, so they don't gain anything from me watching their videos
[*]really the only way they can suppress a video is deletion, which means I just find another instance of the same video. Hopefully no one is foolish enough to trust them without also uploading elsewhere
[*]though not so much an exception as a limitation, the search engine there only covers YouTube (obviously), so the potential scope of censorship is limited.

Twisted_Code said...
This comment has been removed by the author.
Twisted_Code said...
This comment has been removed by the author.