The easiest way to protect ourselves or our family members from accessing such dangerous websites is to BLOCK them altogether. There are actually many softwares available on the internet which are pretty good in blocking websites on your computer, but they cost money and are sometimes difficult to operate.
In this article I will show you how to block unsafe websites on your Windows PC without investing in any additional software.
Note : Blocking harmful websites is not a complete security solution. It is still recommended that you run anti-virus software on your computer and be careful of the websites you visit.
Here’s the trick :
1. Run Notepad as Administrator : For this go to Start > All Programs > Accessories, right-click "Notepad" and select "Run as administrator"
Note : If you are prompted for an administrator password or for a confirmation, type the password, or click "Allow" or "Yes"
2. Within Notepad go to File > Open and select "All Files" from the drop-down menu present near the bottom right corner of the window (check the screenshot).
3. Now type the following text in the "File name" field and click "Open" :
5. The "hosts" file will open up. Go to the last line of the file and press the [Enter] key. Type 127.0.0.1 followed by the address of the website that you wish to block. For example, to block facebook.com, type :
Never add “http://” at the start of the URL. Doing so will make the entry invalid. Also note that writing "www" is optional.
6. To block more websites, type 127.0.0.1 followed by the website address in every new line. You can block as many websites as you like.
7. Save and close the file.
Thats it ! Now try to access the offending site(s) from your Web Browser. You’ll see that those specific website(s) will no longer be accessible.
In case you wish to undo the changes, follow Step 1-3 and delete the lines you had typed. You will again be able to open those sites.
Where to find Malicious Websites List ?
You can download customized "Hosts" file from Winhelp2002 (contains a comprehensive list of sites responsible for displaying ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and other parasites), Peter Lowe’s Ad-server list (contains a list of ad and banner sites) and Technology Made Easy's Malicious Site List (our very own Hosts file).
Direct Links :
You can also use the software HostsMan to effectively manage your Hosts files
Also Check :