Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Host File Solution to Blocking YPN Ads!



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

10+ Year Member

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)

10+ Year Member

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)

10+ Year Member

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! :)


Featured Threads

Hot Threads This Week

Hot Threads This Month