How to block a site on a computer with Windows or macOS
Temporarily free yourself of distractions or protect children from unwanted content on the Web.
All of the following methods block access to the sites you select through any browser. A savvy computer user can bypass such a lock. But to combat procrastination and control over children these measures should be enough.
How to block a site at the level of a router
In the settings of many routers you can manage the black list of sites. Access to the URLs added to it is blocked for all devices network. To unlock any site, just delete its address from the list.
Check if your router provides the ability to lock. To do this, go to its settings: or another address listed on the bottom of the router, and enter your login and password to log in. Then look for the "Filter" section, or "Access control", or another related name.
How to block a site in Windows
Using the hosts file
On each Windows-based computer, there is a text file named hosts. If you add any URLs to it, browsers will not be able to open the corresponding.