How can we block access to a site (Facebook, Instagram, etc.) on Windows 7, Windows 8.1, or Windows 10

Next the method by which you can block access to a site is relatively simple and we think it will be useful for their parents children spend a lot of time on the computer pe gaming sites, movie, Facebook, Instagram or others.

The method is functional on all Windows operating systems, and the most advantageous part is that it does not require the installation of any software or applications to be discovered. In addition, it will be very difficult for anyone to know how to get access to certain sites restricted.

How can we block access to certain sites on Windows (e.g., Facebook and Instagram)

Everyone's intent, when we access a site, we need to get into one Web address. The web address is composed mainly of a domain name. E.g, facebook.com is the domain name. As a domain name has a web page, this name must be based on an IP address that will lead to the host server. The IP address of a domain can be discovered very quickly through a single PING.
If we do it somehow domain name to another IP, possibly non-existent / local (127.0.0.1 for example), then the web page will no longer be accessible. The domain name will take you to the IP address you entered. Now let's see how we can do this.

How can we block / restrict access to a site on Windows

In Windows, there is a "hosts" file that does not have extension and it can do exactly what we are interested in. Through the hosts file you can change the destination / route of a domain. Route.
On most versions of Windows 10 Pro and Windows 10 Enterprise, it does not contain any active lines. When 0 opens, you will see that all lines start with the "#" symbol. Which means the line is inactive. It is not read by the operating system.
Let's see how can we block access to facebook.com and instagram.com on Windows, using the "hosts"

1. go to C: \ Windows \ System32 \ Drivers \ etc. Here we will identify the hosts file. Check to have no extension.

2. Open the "hosts" in Notepad and see do not have active code lines in it. Lines without "#" in front of. Right clickOpen withNotepad.

3. We close the hosts file and open Notepad again (from applications), where we pass the following lines:

127.0.0.1 facebook.com
127.0.0.1 instagram.com
127.0.0.1 fb.com
127.0.0.1 *.facebook.com
127.0.0.1 *.fb.com
127.0.0.1 *.instagram.com

4. Save the file newly created with the name "hosts"On the Desktop. Most of the time, it will be saved with the .txt extension. Delete this extension and confirm the change.

5. We copy the newly created "hosts" file, over the original C: \ Windows \ System32 \ Drivers \ etc. Replace and Accept Admin Copy.

After the new file was copied to C: \ Windows \ System32 \ Drivers \ etc, the addresses can no longer be accessed from that PC.

If you want to undo the restrictions, it is enough to edit the "hosts" file and put the "#" symbol in front of each line.

It is quite possible that after the most important updates of the Windows Updates, this "hosts" file is rewritten or automatically replaced with the original. It is good to periodically check this.

How can we block access to a site (Facebook, Instagram, etc.) on Windows 7, Windows 8.1, or Windows 10

About the author

Stealth

Passionate about everything that means gadgets and IT, I write with pleasure stealthsettings.com from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Comment

  • Very loud, as simple as it is.
    A Question: Is this file set up and vice versa, that is, blocking access to all sites except those sites that we mention manually?
    Regards, Daniel.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment is processed.