How to block any website on your computer?


There may be multiple reasons you would want to block a particular website on your computer. Some of them may be spamming in nature, while a few of them would be stealing your data. A few may come with virus or malware. How would you block a website on your computer or PC? The following tips may be helpful enough.

There are multiple ways you can block a particular website. You can go to the browser level blocking or go with the system level blocking. In fact, opting for browser-level blocking can be quite limited in terms of security, while the system level blocking can be helpful for controlling almost all the websites right away. We will discuss the most common options you may use for controlling the access to malicious websites.

Block websites at browser level


As we already stated, browser level blocking can be least secure among all the options you use for website blocking. You can follow a few browser-specific options for controlling the access to websites.

Block Websites on Chrome


Chrome does not have any built in option for blocking website access. You can make use of an app called BlockSite for controlling access to websites.
chrome blocksite
Here are the steps involved in accessing this extension.
  • Download and install BlockSite on your Chrome installation
  • Launch the extension and enable it.
  • From the extension interface, choose Site List from the sidebar
  • Enter the site address you want to block and click on the Add Site option available in the form of PLUS sign.
That should do it and the site will be blocked. You may also opt for a password protection for opening any website.

Block websites on Firefox


The BlockSite extension is also available on Firefox. The functionality remains similar to the one on Chrome. Search for BlockSite add-on on the Firefox app store. Rest of the settings and functionality remains similar to that on Chrome.
firefox
One additional tool that you can work with on your Firefox is LeechBlock add-on.

Block websites of on Microsoft edge


Yet again, you may not be able to find the built-in option for blocking a website on Edge. One of the good options you may make use includes focalfilter. In fact, the app can be useful in blocking almost any site on any browser of your choice.

Block websites at the network level


In case you have a WiFi router at your place, blocking specific websites should be quite simple enough. However, it may not be much easy to explain the steps involved here. The issue with a few routers is that they do not offer you a user-friendly interface.
Please ensure that you are configuring the changes with utmost care. Any wrong step can render the connection deactivated. It would be ideal to call your ISP in case anything goes wrong or you are stuck at some stage.
The settings for blocking websites should ideally be available under the Access Management. Please note that the settings and name for the setting would change depending upon the router model. You will need to search through your router settings for something like Parental Control or Website Filtering to have access to the functionality.

Block websites at the System level


This method would be the best when it comes to security. You should be able to control access to the specific websites and across all your browsers. The step would involve editing the Hosts file.
Here are the steps involved in configuring your system to block websites of your choice -
  • Navigate to C: > Windows > System32 > drivers > etc.
  • Right click on the file named hosts and choose Open With Notepad option.
  • Next step involves editing the Hosts file so that you can stop access to the website concerned. You may need to enter your password.
  • hosts file
  • Move to the last line on the file and add the websites that you want to block. To block any site, you will need to type in 127.0.0.1 followed by the website address.
  • You may also enter the IP address in place of the website address.
  • You may add as many websites as you want to.
  • Save the file.
That should do it. You are good to go. You have successfully blocked the websites at the system level. None of the browsers on your system will be able to launch the site. If you want to unblock the website in future, you can edit the Hosts file again and remove the website address you want to unblock.

Block the websites on your Mac


If you are on Mac, you may follow the steps here to block websites on your OS X -
  • Launch Terminalon your Mac. You should find it under Applications/Utilities/Terminal.
  • Ensure that you have access to the administrative privileges to your system>
  • At the Terminal Window, type in sudo nano /etc/hosts and press ENTER.
  • You may need to enter your login credentials if prompted for the same.
  • The hosts file will be opened in a text editor.
  • hosts file mac
  • Scroll to the last line and add the websites you want to block in the format 127.0.0.1 www.thissite.com.
  • Save the changes once done.
  • Execute the command sudo dscacheutil -flushcache. This will restart your Mac and your sites should now be blocked.


The Concluding Thoughts


Well, those were a few options you can try out for blocking specific websites on your computer. Even the Android and iOS platforms offer you the options to opt for selective website blocking. We have focussed on the PC for the sake of this tutorial.
As we have been repeatedly stating all through this tutorial, the system level blocking of websites should be ideally the most secure option among all the methods indicated herein. This will basically involve editing the Hosts file for both Windows and Mac. Following these tips carefully can help you restrict access to the specific websites without any issues.


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: