How to block access to the site?

blocking access to the site Hello!

Most modern computers are connected to the Internet. And sometimes it is necessary to block access to certain sites on a particular computer. For example, access to entertainment sites is often prohibited on a work computer: Vkontakte, Moy Mir, Odnoklassniki, etc. If it is a home computer, then they restrict access to unwanted sites for children.

In this article I would like to talk about the most common and effective ways to block access to websites. So, let's begin…

1. Blocking access to the site using the hosts file

Briefly about the hosts file

It is a regular text file in which ip addresses and domain names are written. See example below.

102.54.94.97 rhino.acme.com 38.25.63.10 x.acme.com

(Usually this file is full of other entries besides this, but they are not used, since at the beginning of each line there is a # sign.)

The essence of these lines is that the computer, when you type the address x.acme.com in the browser, will request a page at the ip address 38.25.63.10.

I think that further the meaning is not difficult to grasp, if you change the ip address of the real site to any other ip address, then the page you need will not open!

How do I find the hosts file?

This is not difficult to do. Most often it is located in the following path: 'C: \ Windows \ System32 \ Drivers \ etc' (without quotes).

You can do it differently: try to find it.

Go to the system drive C and type the word 'hosts' into the search line (for Windows 7, 8). The search usually does not last long: 1-2 minutes. After that, you should see 1-2 hosts files. See screenshot below.

2014-03-22 08_56_37-

How do I edit the hosts file?

Right-click on the hosts file and select 'open with'. Next, from the list of programs offered to you by the conductors, select a regular notepad.

Next, just add any ip address (for example, 127.0.0.1) and the address that you want to block (for example vk.com).

2014-03-22 08_59_42-hosts - Notepad

Then save the document.

2014-03-22 08_59_48-hosts - Notepad Now, if you go to the browser and go to vk.com, we will see something like the following picture:

2014-03-22 09_00_46-The page is not available - Yandex Thus, the required page was blocked …

By the way, some viruses block access to popular sites using this file. There was already an article about working with the hosts file: 'why can not I go to social. Vkontakte network '.

2. Setting up blocking in the browser (for example, Chrome)

This method is suitable if one browser is installed on the computer, and the installation of others is prohibited. In this case, you can configure it once so that unnecessary sites from the black list stop opening.

This method cannot be classified as advanced: such protection is suitable only against novice users, any 'average' user will easily open the desired site …

Limit website browsing in Chrome

A very popular browser. No wonder there are tons of add-ons and plugins written for it. There are also those who can block access to sites. One of the plugins will be discussed in this post: SiteBlock.

Open your browser and go to settings.

2014-03-22 09_07_09-

Next, go to the 'extensions' tab (left, top).

2014-03-22 09_07_49-Extensions

At the very bottom of the window, click on the 'more extensions' link. A window should open in which you can search for various add-ons.

2014-03-22 09_08_05-Extensions

Now we drive 'SiteBlock' into the search box. Chrome will independently find and show us the plugin we need.

2014-03-22 09_08_34-Chrome Web Store - siteblock

After installing the extension, go to its settings and add the site we need to the list of blocked ones.

2014-03-22 09_09_25-Extensions

If we check and go to the prohibited site, we will see the following picture:

2014-03-22 09_09_42-chrome-extension ___ pfglnpdpgmecffbejlfgpnebopinlclj_blocked.html_url = http% 3A__vk The plugin reported that this site has been restricted for viewing.

By the way! Similar plugins (with the same name) are available for other most popular browsers.

3.Using Any Weblock program

A very interesting and at the same time extremely simple utility. Any Weblock (link) – can block on the fly any sites that you add to the blacklist.

Just enter the address of the site to be blocked, and click the 'add' button. Everything!

2014-03-22 09_30_58-WebLock

Now, if you need to go to the page, we will see the following browser message:

2014-03-22 09_26_41-Unfortunately, Google Chrome cannot open the vk.com page.

4. Blocking access in the router (for example, Rostelecom)

I think this is one of the best ways that is suitable for blocking access to the site in general for all computers that access the Internet using this router.

Moreover, only those who know the password for accessing the router settings can disable or remove blocked sites from the list, which means that even experienced users will hardly be able to make changes.

And so … (let's show it using the example of a popular router from Rostelecom).

We drive in the address in the address bar of the browser: http://192.168.1.1/.

Enter your username and password, by default: admin.

Go to advanced settings / parental controls / URL filtering. Next, we create a list of URLs of type 'exclude'. See screenshot below.

2014-03-22 09_37_02-DSL Router

And we add to this list the sats, access to which you want to block. After that, save the settings and exit.

2014-03-22 09_34_39-DSL Router

If you go now to a blocked page in your browser, then you will not see any blocking messages. It's just that it will try to download information on this URl for a long time and in the end will give you a message that check your connection, etc. the user who has been blocked access will not even immediately guess about it.

2014-03-22 09_39_02-Problem loading page

5. Conclusions

In this article, we examined blocking access to the site in 4 different ways. Briefly about each.

If you don't want to install any additional programs, use the hosts file. Using a regular notepad and 2-3 minutes. you can restrict access to any site.

For novice users, it will be recommended to use the Any Weblock utility. Absolutely all users will be able to configure and use it, regardless of the level of PC ownership.

The most reliable way to block different urls is to configure your router.

By the way, if you don't know how to restore the hosts file after making edits to it, I recommend the article: https://pcpro100.info/kak-ochistit-vosstanovit-fayl-hosts/

PS

How do you restrict access to unwanted sites? Personally, I use a router …

Rate article
Information portal NTN24enlaweb.com - Ratings and reviews of goods.
Add a comment