The most effective way to block a website depends largely on the device and web browser you are using. For example, if you are using a desktop browser that supports extensions, such as Chrome, Firefox, or Opera, an add-on will work fine. If you are using a web browser that does not support extensions, such as Microsoft Edge, you can get the job done by editing your Windows Hosts file. The Hosts file on Windows and Mac is the only way to block all browsers from visiting specific websites. Blocking sites on Android phones and tablets with a mobile app is very convenient. For iPhone and iPad users, Screen Time offers an easy way to block specific websites. For parents or guardians who want to protect their children from potentially harmful content, blocking sites directly through the router provides an extra layer of protection.
How to Block Websites on Google Chrome
The steps below show you how to edit the Hosts file in Windows 10 and 7.
Type Notepad in the Windows search box, right-click on Notepad (Desktop app) and select Run as administrator.
Select Yes when the User Account Control window appears. If no UAC window appears, go to the next step.