Simple Way To Block Sites
Content is free. When you buy through links on my site, I may earn affiliate commission. Learn More.
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: