How to block a shortcut from accessing the Internet. We deny the program access to the Internet. Using static routes

There are many reasons to block websites. Some sites may distract the user from work, others contain adult materials. In this article we will talk about how to block a website on your computer, looking at several simple and effective methods.

The easiest way to block sites on your computer is to block using . The HOSTS file is located in the folder WINDOWS\system32\drivers\etc\. With its help, you can restrict access to any site. To do this, open the HOSTS file using the standard Notepad program and add the line to the end of the file 127.0.0.1 VASH-SAYT.RU. For example, in order to block access to the VKontakte social network, you need to add the following line: 127.0.0.1 vk.com.

127.0.0.1 is . Thus, by adding a similar line to the HOSTS file, you redirect all calls to this site to your local computer. This leads to the site becoming unavailable and access to it is completely blocked.

How to block a website on your computer using a firewall or antivirus

Many antivirus programs and almost all firewalls allow you to block individual sites on your computer. Therefore, if you have a firewall or antivirus installed on your computer, then you can use these programs to block sites. All you need is to find the corresponding function in the program settings and enter the list of prohibited sites.

For example, in order to block a site using the Agnitum Outpost Firewall, you need to open the menu: Settings - Policies - Plug-ins - Content - Site name, and specify the desired sites.

Almost all of them allow you to block sites on users’ computers. In order to block a site, log into the router’s web interface and find the corresponding function. For example, in ASUS routers you need to open the section “- URL Filter”

The only drawback of this method of blocking sites is that sites are blocked immediately for the entire network that is served by the router, and not for one individual computer.

Are you tired of constant key requests? Tired of unnecessary updates? Then we use the proven method: we prohibit our program access to the Internet using Windows tools.

Just a week ago, I turned a deaf ear to such questions on forums and blogs. I didn’t understand why and who needed it. But the other day I had to look for the answer to this question myself. I struggled with launching the program for a week and by the weekend my patience had run out, I decided to put an end to the torment.

Since I use Windows 7, I will give an example for this operating system.

We prohibit the program from accessing the Internet

Let's go to Control Panel. (Start - Control Panel).

Go to the “System and Security” section.

Let's go to " Firewall Window s".

Go to the “Advanced Settings” section.

In the new window, select “Rules for incoming connections”.

On the right, select “Create a rule...”. The “New Incoming Connection Rule Wizard” window will open.

Now select the item “ Block connection».

Leave all items selected.

We set a name and description for our rule. Click “Finish”.

Now our rule for blocking program access to the Internet appears on the right.
For outgoing connections, rules are configured in the same way.

Advantages of this method

  • We do not use third party services
  • We block programs from accessing the Internet in a couple of minutes
  • Works in most cases (The main thing is to find files that should not be connected to the Internet)
  • Didn't find it

Hello! Several times already I have come across questions like how to block access to certain sites, or how to set up parental controls on a Wi-Fi router. If you need to block access to certain sites, or, conversely, allow access only to certain sites and you use a Wi-Fi router to access the Internet, then you can set up parental controls directly on the router.

You can block certain sites using the antivirus that you have installed (if it has a built-in firewall), or in the hosts file, which you can read about. These methods are good when you connect to the Internet directly, via cable, or wireless modem.

But if you connect to the Internet via a Wi-Fi router, then you can use the function built into it Parental Control. I don’t know how it is on your router, but mine has such a function, so we’ll configure it.

What is the advantage of parental controls at the Wi-Fi router level? First of all, it is the ability to create site access rules for each computer or mobile device that connects through an access point (devices are recognized by MAC address). You can also deny access to certain sites, or allow only some for all devices that work through the same router.

What can I tell you, now I’ll show you everything with an example :).

Setting up parental controls on a Wi-Fi router

In the control panel, go to the tab Parental Control. First we need to enable parental controls. To do this, opposite Parental Control, set the switch near Enable.

Now we need to set the MAC address of the host computer, which will control access to sites. MAC Address of Parental PC enter the MAC address of this computer. And if you entered the settings from the computer that will be the main one, then just click the button Copy To Above. And press the button to save Save.

We have enabled parental controls, now you can add sites that you want to block, or only those that you want to open access to.

On the same page, click the button “Add New...”.

On a new page we create a rule for accessing sites.

Creating a rule for accessing sites

Against MAC Address of Child PC: specify the MAC address of the device to which this rule will be applied. Below in paragraph All MAC Address In Current LAN: you can select one of the MAC addresses of a device already connected to the router. And if you do not specify the MAC address and leave the top field empty, then the rule we created will be applied to all devices that connect to the router, but except for the parent device, the MAC address of which we specified when enabling parental control.

For the experiment, I specified the MAC of my phone.

In point Allowed Domain Name: we can specify eight sites to which you can deny or allow access. It is not necessary to indicate the full address, for example https://www.google.ru. You can only specify the word, for example google. And this means that access will be denied/allowed to all sites whose address contains “google”. For example, to the mail https://mail.google.com.

Paragraph Effective Time: We allow you to manage access time, but I did not configure it.

Now attention! Against Status can choose Enabled, or Disabled. If you set Enabled, this means that access will only be allowed to those sites that we specified above. In my case, to google.ru and all its services.

To save the result, press the button Save.

Let's check the result. On my phone, only sites whose address included the word “google” were available. When trying to access other sites, an error appeared.

Most likely, you have asked the following question more than once: how to block access to a site? The need to block certain sites can be different, for example, to block access to the Odnoklassniki website so that employees in the office at their work computer do not hang around on it, but do their work, or to block access to some sites that are not advisable for children to visit, and so on.

It is worth saying that the method closing access to the site, which will be described below, does not guarantee that a person who is well versed in computers will not be able to guess what is going on. In a word, if you want to prohibit access to the site from children or other people who are not very computer savvy, then everything will work. They will look in surprise at how the site does not load, and will not be able to do anything. But knowledgeable users will most likely be able to solve this problem, although this is not a fact.

Block access to sites we will use the hosts file. This file is located at: My computer - Disk C - Windows - System32 - drivers - etc - hosts.

The hosts file needs to be opened using notepad, double-click on it with the left mouse button and in the list of programs that opens, find notepad, select it and click OK. Or you can right-click on the file and select “Open with - Notepad” from the list that appears.

How do we now block access to sites using this file?!

We need to register them in this file, but there are some nuances here. To begin with, we start on a new line using the enter key and enter the following numbers: 127.0.0.1, after them we put a space and enter the site. It will turn out something like this: 127.0.0.1 www.sait.ru. Then we go to a new line by pressing the enter key, and again we write 127.0.0.1, then we put a space and we write the next site and so on until we have registered all the sites. This is what it looks like for me:

When we have written all the sites that should be blocked when loading in the browser, we need to save this file. Click File - Save.

Last step left! Sites are still loading! This is all because we didn't restart the computer. We restart the computer and try to go to any of the sites that we have registered. The result is obvious - the site does not load.

In these simple ways we have blocked access to sites; your children or other people for whom all these operations were performed will no longer be able to access the site. sites to which access is denied in the filehosts.

To make these sites load again, just go to the host file, delete the registered sites, save the file and restart the computer!

The easiest and most effective way block the program's access to the Internet!
So, as you may have guessed, now we will talk about blocking a program or file access to the Internet. The method is relevant for Windows 7 and 8, but for Windows Xp there will also be a valid option at the very bottom. By the way, this method blocking program access to the Internet does not include the use of unnecessary software (almost =)) We will use the native firewall and the Fiddler2 program, but this is the case with Windows Xp
In general, the Fiddler program is quite an interesting product, since it can determine which resource a particular program is trying to access. But more on this a little later, but now we will begin to consider blocking Internet access for various programs
So, first of all, you should know where the control panel is (in any operating system)! It's so simple that you can't even imagine =). Press Win+R, enter control and voila, you are where you need to be! This is where we will look for our Windows firewall, which will subsequently block access to the Internet from unnecessary programs.

Go to it, then to Additional parameters -> Rules for incoming connections -> on the right select Create rule -> Specify what exactly it is for, in our case For Program -> Now click browse and specify the main exe of the program (for example aimp3.exe -> Block the program -> Leave all the checkboxes -> Give a name to the program that we blocked
All Internet access to the program is blocked!

How to track a program’s access to a website in order to block it in the hosts file

If you want to find out what resources the program visits and deny access to them. Then you can block access to certain resources in the hosts file, which you view using a program called Fiddler2. The program is free, but this does not mean that it is useless!
Let's go to the office. Fiddler 2 website and download the version for your Windows. For Windows Xp I recommend s.Net2, for Windows 7, 8, etc. c.net4


After installation, launch Fiddler 2. Now run the program for which you want to track the paths on the left resources when it is active, for example skype. In the program processes we find skype and see where our wise skype is looking for the path! Pretty good isn't it?

Now we can block, for example, the url responsible for advertising in Skype in the hosts file. Namely 127.0.0.1 rad.msn.com. You can find out more about the hosts file here and here

In order to block changes to files via the Internet, you need to set them to Read mode
In order to set the reading mode, just right-click on the file (if there are several files, you need to do this for each file), select Properties - Attributes - Read Only

You can also read other articles on the topic "Wi-Fi/Network/FTP"

Publications on the topic

  • We deny the program access to the Internet We deny the program access to the Internet

    There are many reasons to block websites. Some sites may distract the user from work, others contain materials for...

  • How to charge a new iPhone How to charge a new iPhone

    When it comes to charging iPhone 10, this little miracle involuntarily pops up before your eyes, which has been included in the kit for several years now...