How to blocking unwanted domains or ads
Today, the number of internet domains is exponentially increased and keep counting. There are wanted and unwanted websites/domains to visit. In most case users have no control of how/what page contents are being displayed. Some users can affort to purchase a software which run at the system level to block unwanted contents while some cannot affort or they don’t like to purchase the third party software because of the cost is not reasonable enough.
Well, you don’t have to live with it if you don’t want to. There are some work-around to prevent a certain page content from being displayed while you are browsing. Let’s take advantage of the hosts file and make your browsing experience more pleasure.
This file contains a list of mappings of IP addresses to host names. You can use this file to block an unwanted or ads site/domains by following a few simple steps below.
Locating hosts file
This will depends on which OS you are using
- Windows 95/98/Me : %windir%
- Windows NT/2000/XP : %SystemRoot%system32driversetc
- Linux : /etc
- Max OS X : either /private/etc or /etc
Backup
Make changes
0.0.0.0 ads.msn.com
0.0.0.0 doubleclick.net
0.0.0.0 unwantedadsprovider.com
Ready to browse
You will notice the your targeted ads doesn’t display on the page you are viewing anymore.
Amazon

