Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit

Closed Thread
 
LinkBack (1) Thread Tools Display Modes
Old 01-09-2009, 04:02 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Apprentice
 
ritesh.techie's Avatar
 
Join Date: Jul 2009
Location: Bhopal, India
Posts: 99
Default How To: Remove all ads from all sites

Almost every page today has got ads these days and most of them are powered by Google Adsense, Adbrite, Chitka etc...

I remember from the day I started using Internet from that day I hated these ads a lot, as they always redirect me to somewhere else and then I just roam here and there in between the ads.

I have found a lot of scripts addons to stop these ads for Firefox, Intenet Explorer, but never found any universal way to do that. One day I was reading some of my old articles and I found this How to: Block a website. This remind me of my tweaking days, so I taught why not try to remove ADs by using this technique.

Quote:
First you need to know What is Windows Host File?
The Windows Host File is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain-text file and is traditionally named hosts -WikiPedia
This file contains the mappings of IP addresses to host names. Each entry should be kept on an individual line. The IP address should be placed in the first column followed by the corresponding host name. The IP address and the host name should be separated by at least one space.

Additionally, comments may be inserted on individual lines or following the machine name denoted by a '#' symbol.

# 102.54.94.97 rhino.acme.com # source server

So by now you must have get an idea what is an Host file. You can view your Host file at C:\WINDOWS\SYSTEM32\DRIVERS\ETC > HOSTS.

Well there are a lot of uses of HOSTS file but in this tutorial I am concentrating on how to block ads using this host file. This is done by using a dummy address, or local host address typically 127.0.0.1, (which is in fact the address of your machine locally that's why it is called Local Host). For example, consider this entry:

127.0.0.1 wwww.yahoo.com

If this entry is saved in your host file then any reference to wwww.yahoo.com will be redirected to your own computer, and thus you are not able to visit Yahoo.com.

By further advancing this technique of blocking a site we will remove ads from all pages, lets know how. Now all you have to do is just follow these steps-
  • Go to C:\WINDOWS\SYSTEM32\DRIVERS\ETC
  • Open HOSTS file in Notepad
  • and after the line 127.0.0.1 localhost
  • Copy the following lines and save the file.

Code:
#GOOGLEADS
127.0.0.1 pagead.googlesyndication.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 googleads.g.doubleclick.net/
127.0.0.1 ad.doubleclick.net
#BIDVERTISER
127.0.0.1 bdv.bidvertiser.com
127.0.0.1 ads.bidvertiser.com
# ADBRITE
127.0.0.1 1.adbrite.com
127.0.0.1 2.adbrite.com
127.0.0.1 3.adbrite.com
127.0.0.1 4.adbrite.com
127.0.0.1 ads.adbrite.com
127.0.0.1 b1.adbrite.com
127.0.0.1 bstats.adbrite.com
127.0.0.1 click.adbrite.com
127.0.0.1 files.adbrite.com
127.0.0.1 pic.adbrite.com
127.0.0.1 vid.adbrite.com
127.0.0.1 site.www.adbrite.com
127.0.0.1 stats.adbrite.com
127.0.0.1 www.adbrite.com
127.0.0.1 adbrite.122.2o7.net
#CHITIKA
127.0.0.1 ads.chitika.net
127.0.0.1 ads1.chitika.net
127.0.0.1 blogads.chitika.net
127.0.0.1 ca.chitika.net
127.0.0.1 mm.chitika.net
127.0.0.1 parking.chitika.net
127.0.0.1 scripts.chitika.net
#ADTOLL
127.0.0.1 adserve.adtoll.com
#CLICKSOR
127.0.0.1 clicksor.com
127.0.0.1 ads.clicksor.com
127.0.0.1 main.clicksor.com
127.0.0.1 mci12.clicksor.com
127.0.0.1 search.clicksor.com
127.0.0.1 serw.clicksor.com
127.0.0.1 track.clicksor.com
127.0.0.1 www.clicksor.com
127.0.0.1 mp.clicksor.net
#YAHOO
127.0.0.1 adserver.yahoo.com
#TARGETPOINT
127.0.0.1 dev.targetpoint.com
127.0.0.1 srs.targetpoint.com
#FASTCLICK
127.0.0.1 fastclick.com
127.0.0.1 www.fastclick.com #[SunBelt.FastClick.com]
127.0.0.1 cdn.fastclick.net
127.0.0.1 code.fastclick.net
127.0.0.1 images.fastclick.net #[Panda.Spyware:Cookie/FastClick]
127.0.0.1 media.fastclick.net
127.0.0.1 secure.fastclick.net #[Tenebril.Tracking.Cookie]
127.0.0.1 sp.fastclick.net
127.0.0.1 fastclick.com.edgesuite.net #[a1795.g.akamai.net]
#BLOGADS
127.0.0.1 b.blogads.com
127.0.0.1 banners.blogads.com
127.0.0.1 c.blogads.com
127.0.0.1 cache.blogads.com
127.0.0.1 d.blogads.com
127.0.0.1 f.blogads.com
127.0.0.1 img.blogads.com
127.0.0.1 st.blogads.com #[WebBug]
127.0.0.1 stat.blogads.com #[WebBug]
127.0.0.1 weblog.blogads.com
127.0.0.1 z.blogads.com
127.0.0.1 www.blogads.com
#ATDMT
127.0.0.1 c.atdmt.com
127.0.0.1 click.atdmt.com #[McAfee.Cookie-Atdmt][Google.Diagnostic]
# 127.0.0.1 clk.atdmt.com #[disabled affects MS downloads]
127.0.0.1 ec.atdmt.com #[atlasdmt.vo.msecnd.net]
127.0.0.1 image.atdmt.com
127.0.0.1 ll.atdmt.com #[atlasdmt.vo.llnwd.net]
127.0.0.1 mir.atdmt.com #[p.mii.instacontent.net]
127.0.0.1 nc.atdmt.com #[EventTracking]
127.0.0.1 rmd.atdmt.com #[a898.x.akamai.net]
127.0.0.1 spd.atdmt.com #[a796.x.akamai.net]
127.0.0.1 spe.atdmt.com
127.0.0.1 srch.atdmt.com
# 127.0.0.1 switch.atdmt.com #[disabled affects Hotmail signup]
127.0.0.1 view.atdmt.com #[eTrust.Tracking.Cookie]
127.0.0.1 www.atdmt.com

These lines are sufficient to remove all types of ads from all sites you visit, but in case you think it is not sufficient visit the following link and copy paste it to the host file.

ADS LINK :rules: by MVPS.org
__________________
Get all latest tips and tricks at http://beingpc.com/
ritesh.techie is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-09-2009, 04:30 PM   #2 (permalink)
AFK
 
thewisecrab's Avatar
 
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
Default Re: How To: Remove all ads from all sites

Or just use Ad Block Plus extension on Firefox OR IEPro for IE 7-8
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab

Fishdumplings!! Duniya goal hai?
thewisecrab is offline  
Old 01-09-2009, 04:34 PM   #3 (permalink)
Democracy is a myth
 
rhitwick's Avatar
 
Join Date: Apr 2004
Location: Thane,Mumbai
Posts: 2,109
Thumbs up Re: How To: Remove all ads from all sites

Quote:
Originally Posted by thewisecrab View Post
Or just use Ad Block Plus extension on Firefox OR IEPro for IE 7-8
Plz, provide link for IEPro :-O
__________________
"My opinions may have changed, but not the fact that I am right."

"I'm never wrong. Once I thought I was wrong, but I was wrong"
rhitwick is offline  
Old 01-09-2009, 08:04 PM   #4 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default Re: How To: Remove all ads from all sites

^

@ritesh
nice! but i would prefer Ad Block Plus...Why to take tension of editing file when an extension is specifically designed for it..
__________________
http://webchat.freenode.net/?channels=krow

http://twitter.com/krazzywarrior
Krazzy Warrior is offline  
Old 01-09-2009, 10:56 PM   #5 (permalink)
AFK
 
thewisecrab's Avatar
 
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
Default Re: How To: Remove all ads from all sites

@rhitwick Here: http://www.ie7pro.com/
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab

Fishdumplings!! Duniya goal hai?
thewisecrab is offline  
Old 01-09-2009, 11:00 PM   #6 (permalink)
Democracy is a myth
 
rhitwick's Avatar
 
Join Date: Apr 2004
Location: Thane,Mumbai
Posts: 2,109
Question Re: How To: Remove all ads from all sites

Quote:
Originally Posted by thewisecrab View Post
@rhitwick Here: http://www.ie7pro.com/
will it work for IE8?

And why ' '?
__________________
"My opinions may have changed, but not the fact that I am right."

"I'm never wrong. Once I thought I was wrong, but I was wrong"
rhitwick is offline  
Old 02-09-2009, 11:29 AM   #7 (permalink)
Apprentice
 
ritesh.techie's Avatar
 
Join Date: Jul 2009
Location: Bhopal, India
Posts: 99
Default Re: How To: Remove all ads from all sites

@rhitwick
The above will work in IE8, Firefox and any browser you name! plus it also blocks ads from Live messenger + Yahoo messenger etc
__________________
Get all latest tips and tricks at http://beingpc.com/
ritesh.techie is offline  
Old 02-09-2009, 11:34 AM   #8 (permalink)
Democracy is a myth
 
rhitwick's Avatar
 
Join Date: Apr 2004
Location: Thane,Mumbai
Posts: 2,109
Thumbs up Re: How To: Remove all ads from all sites

Quote:
Originally Posted by ritesh.techie View Post
@rhitwick
The above will work in IE8, Firefox and any browser you name! plus it also blocks ads from Live messenger + Yahoo messenger etc
Dude, ur efforts are appreciated.

But, if I want temporary ads, I need to go to hosts file and edit those particular filters.
So, I thought may be (may be, as I've not yet experienced that extension thewisecrab mentioned) it would support block/unblock ads on my whim...
__________________
"My opinions may have changed, but not the fact that I am right."

"I'm never wrong. Once I thought I was wrong, but I was wrong"
rhitwick is offline  
Old 02-09-2009, 01:38 PM   #9 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,404
Default Re: How To: Remove all ads from all sites

Or, try privoxy.
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 28-09-2009, 10:32 PM   #10 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2009
Posts: 21
Default Re: How To: Remove all ads from all sites

Give some details about it....
sabarishwar is offline  
Old 29-09-2009, 12:03 PM   #11 (permalink)
Apprentice
 
ritesh.techie's Avatar
 
Join Date: Jul 2009
Location: Bhopal, India
Posts: 99
Default Re: How To: Remove all ads from all sites

^haven't you read the thread completely
__________________
Get all latest tips and tricks at http://beingpc.com/
ritesh.techie is offline  
Old 29-09-2009, 09:39 PM   #12 (permalink)
Alpha Geek
 
Join Date: Jun 2009
Posts: 835
Default Re: How To: Remove all ads from all sites

Quote:
Originally Posted by sabarishwar View Post
Give some details about it....
Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.

Privoxy is Free Software and licensed under the GPL2.

>>>DOWNLOAD PRIVOXY<<<
Aspire is offline  
Old 04-10-2009, 05:53 AM   #13 (permalink)
Fast 'N' Furious
 
topgear's Avatar
 
Join Date: Jul 2006
Location: Geek's Heaven
Posts: 9,126
Default Re: How To: Remove all ads from all sites

For opera use fanboy's addblock list
__________________
ToPsPeEeD = FaSt BuT StEaDy

AMD Radeon HD 6850 OverClocked to 1 Ghz !!!

Blog : http://topgeartopspeed.wordpress.com/
----------------------------------------------------
Never buy viewsonic products : http://tinyurl.com/ykwx4oa
topgear is online now  
Old 11-10-2009, 11:34 AM   #14 (permalink)
œ∑´®†¥¨ˆøπåß∂ƒ©˙∆˚¬Ω≈ ç√∫˜
 
the.kaushik's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 1,063
Default Re: How To: Remove all ads from all sites

Nice tut. But what happens if you are a developer and you have tomcat running at port 80
__________________
Blogging @ http://classictutorials.com
the.kaushik is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/tutorials/120693-how-remove-all-ads-all-sites.html
Posted By For Type Date
Thread Remove All Ads | Nature Or God | BoardReader This thread Refback 28-06-2010 07:41 PM


All times are GMT +5.5. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2