homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Yahoo / Yahoo Publisher Contextual Advertising Network
Forum Library, Charter, Moderator: open

Yahoo Publisher Contextual Advertising Network Forum

  posting off  
Host File Solution to Blocking YPN Ads!

 8:10 am on Apr 16, 2006 (gmt 0)

I was searching for a way to block YPN ads from my family (so they do not accidentally click the ads on my sites), and I discovered this easy solution.

Locate the "hosts" file for your computer. For my computer (Windows XP) the file was located at: C:\WINDOWS\system32\drivers\etc

Once you've found this folder, look for a file called 'hosts' (with no file extension). Open it up in notepad and add this line: ypn-js.overture.com

This will block all YPN ads by redirecting the request to your localhost, thus making the ads invisible. :D

I hope this helps those people who were looking for a way to block their ads from their family.



 12:57 pm on Apr 18, 2006 (gmt 0)

That is good to know, thanks FT. I just tried it and YPN is blocked on my entire home network. To block adsense I added: pagead2.googlesyndication.com

I don't need to use this, but it's good to know. Might be handy when testing your sites online, when you need to refresh a page a million times.


 7:12 am on Apr 20, 2006 (gmt 0)

Yes, it comes in handy a lot. That's why I shared it! ;)

By the way, if you are planning on blocking Adsense ads you might want to add all: pagead.googlesyndication.com pagead2.googlesyndication.com adservices.google.com

Adsense sometimes uses different servers when serving ads, so I'd add all 3 to be safe! :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Yahoo / Yahoo Publisher Contextual Advertising Network
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved