How To Block A Website On Windows PC & MAC

There is a lot of reasons why you might wanna block a website on your computer. The reason might be a virus, malware, containing NSFW content or they might try to dig into your personal, data. Sometimes you just can’t deal with such issues and have to block such certain websites.How To Block A Website On Windows PC & MAC

There are many ways to block websites, blocking on browser level or completely block sites on the network or in the operating system.

How To Block A Website On Windows PC

You can either chose to block sites on the operating system level or network level.

In this method, we are going to guide you on how to block a website on the DNS level 

  1. Sign in to your PC with the administrator account.How To Block A Website On Windows PC & MAC
  2. Go to C:\Windows\System32\drivers\etc\.How To Block A Website On Windows PC & MAC
  3. Double click on “Hosts” and open the file in Notepad.How To Block A Website On Windows PC & MAC
  4. The last two lines of the file must read something like “# 127.0.0.1 localhost” and “# ::1 localhost”.How To Block A Website On Windows PC & MAC
  5. End the end of the file, you have to enter the website URL which you want to block.
  6. At the end of the file write 127.0.01 then the name of the website. E.g. 127.0.0.1 www.google.co.in at the end of the file. You can block unlimited numbers of websites, but you should put only one site in one row.How To Block A Website On Windows PC & MAC
    • Note:- In case you are not able to edit the file then click on “Hosts” and select “properties”. Go over “security” and select administrator account. A popup will appear, select admin account again and then click “Apply.”
  7. Repeat the steps until all your websites are added to the file. The website you want to block of-course.
  8. Save the notepad file and close it.
  9. Reboot your PC to activate changes.
  10. Congratulations, now those websites won’t work and won’t load in any browser on your PC.

How To Block a website on Mac

Well, we cant ignore Mac users, so here is one simple tutorial on how to block websites on a Mac using the above method.

  1. Make sure you’re logged in your Mac as admin.How To Block A Website On Windows PC & MAC
  2. Go to /Applications/Utilities folder in Finder and open terminal.How To Block A Website On Windows PC & MAC
  3. Type the code sudo nano /etc/hosts and hit enter.How To Block A Website On Windows PC & MAC
  4. Enter your password if necessary.How To Block A Website On Windows PC & MAC
  5. The host file will open in text editor. Just type the name of the website as we did in the above method. For e.g. 127.0.0.1 google.com.How To Block A Website On Windows PC & MAC
  6. When you’re finished, press ctrl+x and then press “Y” to save.
  7. Now copy and paste the code into terminal sudo killall -HUP mDNSResponder and hit enter. Then enter the password and again hit enter.How To Block A Website On Windows PC & MAC
  8. Wait for your mac to restart and check if the sites are loading or not.How To Block A Website On Windows PC & MAC

How To Block a Website On Your Browser

Blocking sites is super easy with plugins and extensions available for modern browsers. No, we aren’t talking about Microsoft Edge here.

On Mozilla Firefox and Google Chrome

  1. Download Blocksite Plugin from here.
  2. After download click on the plugin.
  3. Open extension options.How To Block A Website On Windows PC & MAC
  4. Enter the address of the website which you want to block.How To Block A Website On Windows PC & MACHow To Block A Website On Windows PC & MAC
  5. Click Ok.
  6. Everything is done.How To Block A Website On Windows PC & MAC

Note: This method will only block websites on a browser level. So, in case somebody installs another browser or delete the plugin – The site will start loading again.

On Internet Explorer

We can’t be racist on browsers. After all Internet Explorer helps us to download chrome installer. Isn’t it?

  1. Open Internet Explorer and go to tool > internet options > security > restricted site button.
  2. Type in the website address which you want to block. Simple!

Conclusion

So we have come to the end of this guide. We hope now you understand the basics of how to block a website. If, in case one of your friends is searching for methods to block websites then feel free to share this article with them.

Jitender Singh

Jitender Singh, the owner of this site, is a technical expert, SEO expert, YouTubber and a experienced blogger by profession. He basically belongs to a middle class family in Faridabad.

Leave a Comment