Sunday, November 9, 2008

Blocking Irritating Adverts and Pop-ups.

Just a little tutorial on how to block certain ad sites that has irritating pop-ups.
On the need to stop pop-ups from disturbing my sisters while watching naija movies on OnlineNigeria, i came up with this simple idea to block the particular site/link/domain that serves the JavaScript that triggers the ad to pop-up on a user computer....this would apply to other sites that has annoying pop-ups.
This little hack will serve as a guideline for other users who might want to do similar thing to other sites that they visit often that serves pop-up.

This tutorial is for Windows OS.

>>> Open a notepad (for Vista users, run as admin)
>>> Browse to C:\Windows\System32\drivers\etc
>>> Select "All files" in the file types drop-down
>>> Open "Hosts"
>>> Add the following lines to file


127.0.0.1 site.com

NB: site.com is the link the site that serves the add

For onlineNigeria users add

127.0.0.1 media.fastclick.net
127.0.0.1 a.trialfusion.com

>>> Save the file and visit the site in question.


this should stop the pop-ups from popping up any how for the site.

1 comments:

Wale said...

Thanks for this hack.