How to Block Websites on Computer

Spread the love

Many reasons would make one want to block a website. You may want to protect your children against certain explicit content, and some sites spread viruses while others try to steal personal data. No matter the reason, the process is more comfortable than what most people think. However, not many people know how to block websites on the computer. The majority of browsers allow you to block specific websites easily.

How to block websites on windows PC

  1. 1
    Ensure you have administrator access on your PC, then sign in using the administrator account. Open windows explorer, then navigate to C:\Windows\System32\drivers\etc\
  2. 2
    The next step is to double-click on a file named 'hosts' and select Notepad from the programs' list. The host file should read " localhost" and "::1 localhost" on the last two lines.
  1. 3
    You can now add the addresses of the websites you want to block at the end of this file. This is achieved by adding a line at the end of the file. To do this, place the cursor at the end of the last line with, then press enter to create a new line.
  2. 4
    Type and then the name of the site you wish to block.
  3. 5
    To continue adding sites you wish to block, type the name of the sites prefaced with and space.
  1. 6
    For the changes to take effect, close the hosts file, then click Save. Then, reboot the PC, and the sites will be blocked.

This is a simple way of how to block websites on computers using the Windows operating system.

How to block websites on mac

  1. 1
    The first step is to open the terminal. You can find this under /Applications/Utilities/Terminal. This is done to ensure one has administrative access to the MAC.
  1. 2
    Type "sudo nano /etc/hosts" on the command line. This is the hosts file command. When asked, enter the login password. This confirms your identity and opens the hosts file.
  2. 3
    Create a new line in the host file, then type the name of the website you want to block in a new line in this format "". In cases where you want to block multiple sites, each URL must be on its line.
  3. 4
    After entering the sites you want to block, hold Control + "O" to save the host database changes. The final step is to key in the command sudo dscacheutil -flushcache and press Enter or restart your machine. This is flushing the DNS, which refreshes the websites' browsers' memories, ensuring that the websites are blocked.

How to block websites on computer individual browsers

Mozilla Firefox - Block Websites

  1. 1
    Start Mozilla Firefox on your computer. There are many extensions available that one can install to block websites on Mozilla Firefox.
  2. 2
    Click on the menu button then select Add-ons.
  1. 3
    Click on the get add-ons tab on the left side of the screen to display featured add-ons.
  2. 4
    At the bottom of the page, click on see more add-ons. From here, you can search all available extensions that allow you to block websites, for example, Block site.
  1. 5
    Click on the "add to Firefox" then "install" to add the browser extension. Restart the browser after the installation process is complete.
  1. 6
    Return to the extension section on the add-ons tab and click the “options” button next to blocksite.
  1. 7
    It is advisable to set up a password to prevent anyone from accessing the Block site settings. Check on the enable authentication box.
  2. 8
    On the blacklist option, add all the sites you want to be blocked. On the whitelist options, all websites are blocked except the added ones.
  1. 9
    Click on the add button, then type the websites to add them to the whitelist or blacklist, depending on your settings.

Google Chrome - Block Websites

There isn't a built-in feature to block websites in Google Chrome. You can, however, install some third-party extensions that can help in blocking websites. An example is Web Nanny.

  1. 1
    On the chrome web store, search Web Nanny using the following URL
  2. 2
    Click on “add to chrome” to install the extension. After installation, its icon appears to the right of the address bar.
  1. 3
    Click on the icon, then select “options” from the menu.
  2. 4
    The next step is to type the URLs of the sites you want to be blocked.
  1. 5
    From there, click save. From then onwards, any attempt to access the particular websites displays an error message.

Safari browser - Block Websites

You can block websites on a Safari browser using a website blocker app called Appcrypt.

  1. 1
    The first step is to install and launch Appcrypt
  2. 2
    The app will ask you to set a password for blocking websites as well as locking apps.
  3. 3
    After entering the password, click the “webBlock” button, which pops up a window showing the blacklist and whitelist website.
  4. 4
    Choose “Blacklist” and click “+” to add URLs of the website you want to be blocked.

Internet Explorer - Block Websites

  1. 1
    Open windows explorer and go to tools then internet options on the drop-down menu.
  1. 2
    Go to the “content” tab on the internet options dialog page, then click on the “Enable” button under “content advisor”.
  1. 3
    On the "approved sites" tab, type the URL of the site you want to be blocked and click on the "never" button.
  1. 4
    The website's name will then appear in a bigger box with a red mark indicating that the site is blocked.
  2. 5
    On the "General" tab, you can set the password so that users can visit the restricted websites by typing the password. This is done by checking the box next to "Supervisor can type a password to allow users to view restricted content".

mSpy: The Best Mobile Monitoring Tool

If you are looking for the best hacking tool, then mSpy is the app for you.

One of the tool's significant pros is monitoring a smartphone from your smartphone with the application. You can use the application to hack and Android devices, including Sony, Huawei, HTC, Samsung, google nexus, LG, and Lenovo. You can also use it to hack iPhones. That's not all, and you can also monitor browser history and view all the saved bookmarks.


In matters concerning how to block websites on a computer, above are some of the methods you can use. One can use many more ways to block websites according to your preference and the process's complexity.

Spread the love
Click Here to Leave a Comment Below 0 comments

Leave a Reply: