Cases where it may be necessary to block access to the site cannot be called rare. For example, a user wants to block access to a specific site for a child, it may be a social network. At the same time, there is no need to download any specific program, the work of which will still take a long time to understand. You can consider the simplest and most effective way, which is to edit the system hosts files.
How to block access to the site?
The file, which will be further considered, serves to prohibit display in all browsers that are installed on the user's computer, as well as for professional configuration of local networks. This file is quite often modified by malware. So where is this file located? It is worth looking for it on the system local disk, that is, what is under the letter C, after which you need to open the Windows folder in which you need to find the System32 folder. This folder should contain the drivers directory, and it needs to find etc, where the user will find the hosts file. In the event that it is not there, it can only mean that you inattentively searched for it, since it is available on all computers running the Windows platform.
Blocking hosts sites allows you to block access from a specific computer to specific sites. That is, the user or system administrator can prohibit access to certain domains for a given PC. The hosts file is essentially a plain text file that is loaded into the cache when the system starts, and when the system queries the DNS server, it checks this file. This file can be used to redirect the computer to another site or back to the local machine. You can even reorient the redirect from one site to any other.
This file should be opened using notepad. From there, you can safely delete everything, after which it will be necessary to determine which files should be in the black list. Suppose you are interested in how to block access to the VKontakte site? This will require you to enter in the file:
127.0.0.1 vk.com
Before the site, this IP address must be registered without fail, otherwise the block will not work. After rebooting the computer, this site will no longer be accessible to it.
Before you close the file after editing, you need to make sure of something. The file must be in the same format as originally, that is, you cannot agree to the proposal of the system to assign it some format. You should not add "HTTP" at the beginning of the site address, just writing WWW is enough.
To return the availability of a blocked site, you must open the same file again, and delete the corresponding line in it, save it, after which the site will become available again.
Another way to block access to the site
This method involves blocking access to the site from a specific browser. It can be, for example, Internet Explorer. To do this, you need to enter the browser properties, open the "Content" section, and select "Restrict" access in it, and then click the "Enable" button. A window will open before the user, in which you can allow or deny access to some sites, as well as set age limits. In the Opera browser, you can enter the "Tools", where to find the item "Advanced". In this window, you will need to open the "Blocked content". In the window that will open later, you can enter a number of sites that the user wants to block. This feature is available in every browser, but it is not as reliable as using the hosts file, since the user can download another version of the browser from a USB flash drive, or uninstall the browser, and then install a new one in its place.
So, now you know how to block access to the site.