Below we will see how you can block websites on computer you from archive hosts. You may find it very useful especially if you have children.
By editing the hosts file, you tell your system to use a specific address IP instead of the normal one (the one given by the DNS server) when you type a URL into the line browser addresses.
So when someone wants to visit facebook.com their IP (at the time of writing) is 31.13.64.35, you can make your browser send the person to the local address 127.0.0.1 which shows nothing.
Edit the hosts file
First, you need to find the file. Follow the route:
C:\Windows\System32\drivers\etc
When you get to the etc folder, open the hosts file using either editor text you want. We recommend (once again) notepad++, which is free and very reliable.
You will need to open the file with administrator privileges before you can save the changes.
So choose which application you want to edit the text with, right-click on the icon and "run as administrator."
When you open the hosts file, you will probably see something like this:
You can add the entries you want below the last row without adding the "#" character at the beginning. The pension should be as you see below:
127.0.0.1 facebook.com
Each domain you want to block must appear just below what you first wrote. You can add both www and non-www versions of the site in separate lines. That's it.
Do not attempt to provide a specific URL such as facebook.com/messages/etc. You use hosts to block domains, not pages.
Once you are done with the list of domains you want to block save the hosts file.
Σε ορισμένες περιπτώσεις, θα διαπιστώσετε ότι το μπλοκάρισμα σας λειτουργεί άμεσα, αν προσπαθήσετε να ανοίξετε την σελίδα στον browser σας, και άλλες φορές πάλι θα χρειαστεί να πραγματοποιήσετε μια επανεκκίνηση στον computer you.
If you find that the page you want to block is still working, try adding the actual IP address of the site along with the local IP.
The actual IP of a page can be easily found. In Windows Search, type cmd and open the application from the results.
Enter the ping and domain you want to find the IP.
So in the case of Facebook, the hosts file should also contain the following order.
127.0.0.1 31.13.64.35
__________________________
- Windows Disable unnecessary services
- What is Software, Hardware and Motherboard RAID? Guide for Beginners
- DNS: how to find the fastest DNS resolvers for your system