How to Block Websites on Computer

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

How to block websites on computer

a) How to block websites on windows PC

  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. The next step is to double-click on a file named ‘hosts'. From the list of programs, select notepad. The host file should read " localhost" and "::1 localhost" on the last two lines.
  3. How to block websites on windows PC

  4. 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.
  5. Type and then the name of the site you wish to block.
  6. To continue adding sites you wish to block, simply type the name of the sites prefaced with and space.
  7. block websites on windows PC

  8. For the changes to take effect, close the hosts file then click save. You should then reboot the PC and the sites will be blocked.

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

b) How to block websites on mac

  1. The first step is to open terminal. This can be found under /Applications/Utilities/Terminal. This is done to ensure one has administrative access to the MAC.
  2. How to block websites on mac

  3. 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.
  4. 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 own line.
  5. After entering the sites you want to block, hold Control + “O” to save the changes to the host database.
  6. 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 browsers’ memories of the websites ensuring that the websites are blocked.
  7. block websites on mac

c) How to block websites on computer individual browsers

Mozilla Firefox - Block Websites

  • Start Mozilla Firefox on your computer. There are many extensions available that one can install to block websites on Mozilla Firefox.
  • Click on the menu button then select Add-ons.
  • Mozilla Firefox - Block Websites

  • Click on get add-ons tab on the left side of the screen to display featured add-ons.
  • 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 blocksite.
  • How to block websites on Mozilla Firefox

    Click on the “add to Firefox" then "install" to add the extension to the browser. Restart the browser after the installation process is complete.

    block websites on Mozilla Firefox

    Return to the extension section on the add-ons tab and click the “options” button next to blocksite.

    block websites on Firefox

    It is advisable to set up a password to prevent anyone from accessing the blocksite settings. Check on the enable authentication box.

    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.

    How to block websites on Firefox

    Click on the add button then type the websites to add them to the whitelist or blacklist depending on your settings.

    Firefox websites blocking

      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. On the chrome web store, search web nanny using the following URL,
      2. Click on “add to chrome” to install the extension. After installation, its icon appears to the right of the address bar.
      3. Google Chrome - Block Websites

        How to block websites on Google Chrome

      4. Click on the icon then select “options” from the menu.
      5. The next step is to type the URLs of the sites you want to be blocked.
      6. How to block websites on Chrome

      7. 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 safari browser using a website blocker app called Appcrypt.

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

      Internet Explorer - Block Websites

      1. Open windows explorer and go to tools then internet options on the drop-down menu.
      2. Internet Explorer - Block Websites

      3. Go to “content” tab on the internet options dialog page then click on the “enable” button under “content advisor”.
      4. How to block websites on Internet Explorer

      5. On the "approved sites" tab, type the URL of the site you want to be blocked and click on the “never” button.
      6. How to block websites on IE

      7. The name of the website will then appear in a bigger box with a red mark indicating that the site is blocked.
      8. On the "General" tab, you can set the password in such a way 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”.
      9. Internet Explorer blocking websites

    Spyzie: The Best Mobile Monitoring Tool

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

    One of the major pros of the tool is that you can actually monitor a smartphone from your smartphone with the application. The application can be used to hack android devices including Sony, Huawei, HTC, Samsung, google nexus, LG, and Lenovo. It can also be used to hack IPhones. That’s not all, you can also monitor browser history and view all the saved bookmarks.

    The Best Mobile Monitoring Tool

    In matters, concerning how to block websites on a computer, above are some of the methods you can use. There are many more methods one can use to block websites according to your preference as well as the complexity of the process.

    All Topics

    Parental Controls on Android
    Parental Controls on iPhone
    Parental Control Tips
    Kid Tracking
    Porn Blocking
    Reminders: All apps or tools introduced in this article shall be for legal use only. Please follow the Terms & Use and End User License Agreement (EULA) before trying any of them. Any consequences of improper use should be borne by users.
    Home > How-to > Content Blocking > How to Block Websites on Computer
    Try it now