| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
| Forum Library : Charter : Moderator: open|
Yahoo Publisher Contextual Advertising Network Forum
|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:
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:
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:
Adsense sometimes uses different servers when serving ads, so I'd add all 3 to be safe! :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved