You are here: Home Guides & Tutorials Software Guides How to remove Google, Yahoo and MSN ads

PC Offensive

How to remove Google, Yahoo and MSN ads

E-mail Print PDF

Google ads on some sites can be well placed and fit in well with the rest of the page, sometimes they do not. I recently saw a site that had no real context or point, tables everywhere, and just seemed to have links to things they liked and plenty of google ads.

Head to C:\WINDOWS\system32\drivers\etc and you'll see a HOSTS file, open it with notepad.

The hosts file has several purposes, networking is one, but I won't go into that here. Entries in the hosts file tell the computer to push all those requests to the loopback address. This is 127.0.0.1 (actually, anything is the range 127.0.0.0 to 127.255.255.254 is mapped to the loopback). The loopback address is the computer you are currently on, so your basically going to tell your computer that Google ads are located on your computer, which they are not, so you won't see them.

In your hosts file on the last line, add the following:

127.0.0.1 pagead.googlesyndication.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 adservices.google.com
127.0.0.1 ssl.google-analytics.com
127.0.0.1 www.google-analytics.com
127.0.0.1 imageads.googleadservices.com
127.0.0.1 imageads1.googleadservices.com
127.0.0.1 imageads2.googleadservices.com
127.0.0.1 imageads3.googleadservices.com
127.0.0.1 imageads4.googleadservices.com
127.0.0.1 imageads5.googleadservices.com
127.0.0.1 imageads6.googleadservices.com
127.0.0.1 imageads7.googleadservices.com
127.0.0.1 imageads8.googleadservices.com
127.0.0.1 imageads9.googleadservices.com
127.0.0.1 partner.googleadservices.com
127.0.0.1 www.googleadservices.com
127.0.0.1 apps5.oingo.com
127.0.0.1 www.appliedsemantics.com
127.0.0.1 service.urchin.com 

You can block MSN and Yahoo! ads by ading the following:

127.0.0.1 view.atdmt.com
127.0.0.1 rad.live.com
127.0.0.1 rad.msn.com
127.0.0.1 live.rads.msn.com
127.0.0.1 ads1.msn.com
127.0.0.1 insider.msg.yahoo.com

It's not really Google or MSN or Yahoo! ads that I'm concerned with. It's malicious sites that I'm more concerned with blocking. There are lists available of known Malware sites you can block with your hosts file. Some sites rely on adverts to keep them alive (server costs, domain names, etc) and advertising is often the only source of income. Other than sometimes being annoying, Google ads are often innocuous, it's actually the sites that DO NOT use Google ads that are the most annoying.


Comments (0)add comment

Write comment
smaller | bigger

security image
Write the displayed characters


busy
 
Malwarebytes. Destroying malware, one byte at a time

You May Like

Advertisment (text)


PC-Offensive

PC Offensive Hardware, Software and Gaming News, Reviews, Videos and Tech Help. Visit: PC Offensive.

Dilatory Games

Dilatory Games - Only The Best Free Flash Games

Dilatory Games - Only The Best Free Flash Games

Word Flippa

http://www.wordflippa.com Fun with Facebook, flip your words around with Word Flippa
Home | Live Chat | Reviews | Guides | Tech Help Forums | Malware Guides | Hints & Cheats | Downloads | Videos | Gallery | Members | Calender | Contact Us