Simple Way To Block Sites - Cyber Tweaks

Ads Top

Simple Way To Block Sites

Content is free. When you buy through links on my site, I may earn affiliate commission. Learn More.

Really, you need not set up firewall filters to block sites on your PC. Here is a simple trick to block the site on your computer system. In the first step, you must find the "Hosts" file. It is located in C: WINDOWSsystem32driversetc. It contains information about your local system hosts on your PC.

Here are the next steps
1. Go to the location C:WINDOWS\system32\driversetc
2. You will find a file by name "hosts" with no extension.
3. Open that file in "Notepad"
4. Go to the page bottom where you could find the following line "127.0.0.1 localhost"
5. Now add another line at the bottom for ex: "127.0.0.1 http://www.sitename.com/localhost"
6. This line will block the site http://www.sitename.com

127.0.0.1 is the IP address of the local system called the loopback address. When you enter a site, the browser will first check the host's file and then it would go for the DNS service of your ISP. The browser will assume that 127.0.0.1 is the IP address of the site name that you have added and will connect to the localhost itself. So the websites don't get opened. you can add more lines after the first localhost you have added.

No comments:

Powered by Blogger.