Skip to main content

How to Block Website on Windows Computer

You might want to block certain website that irritates you and turn down your browsing experience. There are many website which shows advertisements of explicit content or showing up unnecessary things. Some might be spreading viruses and malware to infect your PC or even be trying to track you online and steal your personal information.

How to Block Website on Windows Computer

There are many ways to block these website and prevent companies from tracking you. Well there are many paid alternative to do this but let's learn the free and easy method.
In this post, I will explain you few simple steps to use host file as an option to block website. Host file in Windows controls how you connect to the Internet. Every Website is hosted on the server which have fixed/static IP address and DNS provide an IP address a unique name (for example - facebook.com). We can use host file in Windows to redirect website to the IP address which doesn't exist (for example - localhost (127.0.0.1)).

Block Website in Windows

Make sure you're signed in to Windows with one of the administrator account. You'll not be able to edit the hosts without admin rights.

How to Block Website on Windows Computer
  • Open Notepad as Administrator.
  • To open Notepad as Admin, follow the three steps given below:
  1. Press Windows Key.
  2. Type Notepad in the search field. In Windows 8 or above move your mouse cursor to any corner of the Window and click on Search to start searching.
  3. Right click on the Notepad and select Run as Administrator from the right click menu.
  • After opening the Notepad with required permission, click File > open.
  • Navigate to the following folder.
C:\Windows\System32\Drivers\etc


Note: If you have installed your OS on another drive than replace C with that drive letter.
  • Select All Files from the file type box (at the bottom of the dialog box) else the host file will not appear in the list.
How to Block Website on Windows Computer
  • Select hosts and click open button.
  • Add a new line to the host file at the end. Type 127.0.0.1 > Click space bar to give space > Type website name you want to block. If you want to block facebook.com than you'll add the following line to host file.
127.0.0.1 facebook.com

How to Block Website on Windows Computer
  • To block another website, add a new line > type 127.0.0.1 > give space > type url address you want to block.
  • Click File > Save. You can also press CTRL + S key to save the file.
Note: Your antivirus might warn you about these changes as host controls the way you connect to different websites on Internet. Ignore warning.
  • Done. Your site is blocked now and you'll not need to restart your system or your browser.
If you use Windows Defender or Firewall than it might revert the changes you made to the host file and you'll not be able to block the website. If you followed the above steps and site isn't blocked than you can exclude hosts files from being monitored from Defender. Follow these steps.

Read: You might want to know some tricks to access blocked website.

Note: Excluding hosts files from being monitored can cause you more trouble and make your Computer prey to malicious attacks.
  1. Open Windows Defender.
  2. Go to Settings tab and click on Exclude file and locations.
  3. Navigate to the file - C:\Windows\System32\Drivers\etc\hosts.
  4. Click Add button and than save your changes by clicking save changes button.
Now after excluding the hosts from being monitored follow the above mentioned steps to edits host files again. Site will be blocked just after saving your changes.

Comments

  1. I am using AVG protection for a few years now, I recommend this solution to all you.

    ReplyDelete

Post a Comment

Popular posts from this blog

Need for Speed (NFS) Carbon Cheats, Codes and Unlock Parts

Need for Speed makes some great racing games like NFS Most Wanted, Rivals etc. and Need for Speed Carbon is another 10th addition to their NFS series. It's the first game to get the PEGI rating 12+. It's a very good game with it's story line. If you are looking for some adventure and a good racing than this one will be in your game list. While playing the game you will face some difficulty in completing this game. And from than onwards you may look some cheat codes that can help you in completing NFS carbon. And to make it easier for you here is the list of some working cheat codes and trainer. But you proceed to know about cheats and tricks for Need for Speed Carbon you would like to know the adventurous story of the game. So let's start. The game is set in the fictitious city of Palmont. Soon after the player leaves the Rockport City ( remember jumping of an old bridge in last scene of NFS Most Wanted) the player drives on a route to Palmont city with his BMW ca...

How to Watch Any TV Show or Movie on Kodi

Kodi is a cross-platform media center solution developed by XBMC/Kodi Foundation, a non-profit technology association. Kodi which was previously known as XBMC has been growing rapidly from last few years. While the application offers to play local media files, but, it has plethora of third party add-ons, which, we can use to increase it's usefulness. In this post, you'll learn the process to install Indigo and Exodus on Kodi 18 (64-bit). The process is similar on version 17 of this app, however, I haven't checked the previous versions. Note : Streaming copyrighted content is illegal, nevertheless, it's completely legal to use Kodi for viewing the content you've purchased. First, we'll need to add Indigo Installer. Follow the following steps to know how to do it: Open Kodi . Click on the Gear button (settings). Select File Manager . Double Click on Add Source . Click on <None> ... ...type  http://fusion.tvaddons.ag and...

Top 5 Alternatives to Extratorrent

In an unforeseen move, Extratorrent decided to shut down few months ago. It was one of the most popular torrent site, but now users who visit it's homepage are greeted with a message which clearly states they are not going to return in the future. Now that they are gone, various clone sites such as extratorrent.cd has been setup to squeeze money from the confused visitors via its advertisements. People visiting these clone sites should know that the original ExtraTorrent owners have deleted all data, and none of the impostors have access to the old ExtraTorrent files. There are many alternatives out there. You just need to look at the right place. Take a look at the following original torrent sites which might entice you. 1337x.to 1337x is probably the best designed torrent site you'll ever come across. Although it lacks the ExtraTorrents' rating system, nonetheless, most of the contents are verified by moderators. The site has easy-to-navigate subsections whic...