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 Get Unlimited Ammo and Health in IGI 2

After many days I am sharing a cool and interesting trick for game lovers. Do you enjoy playing IGI2? Of course you like this game. But many of you may be facing verious difficult situations in completing this game. It's because the missions are really tough and you can't complete whole IGI 2 without using it's cheat codes. There are many hacking tricks for IGI available in the Internet but most of them don't work. And this is the reason I am sharing these cheat codes to you. After reading this post you will be able to play this game without losing any health and ammo. We'll use a lite application to achieve the immortality and infinite number of ammo in this game. You will have to download the software from the link that I will provide you a little later in this post. Let's first know what this software will do. It will allow you to keep your health unlimited in IGI game. And if the health will not decrease then you will never die in the game IGI. You wil...

Enhancing Productivity with Virtual Desktops in Windows 11

In the fast-paced digital age, multitasking has become an essential skill for maximizing productivity. With the release of Windows 11, Microsoft introduces an enhanced Virtual Desktop feature that empowers users to organize their workspace, manage tasks efficiently, and seamlessly switch between different contexts without the clutter. In this article, we'll delve into the world of Virtual Desktops in Windows 11 and explore how this powerful tool can elevate your productivity to new heights. Task View  The Power of Virtual Desktops Virtual Desktops in Windows 11 provide users with a dynamic way to manage their open applications and tasks. Think of them as separate workspaces, each with its own set of open apps, files, and windows. This allows you to group related activities together, effectively creating a focused environment for different projects, tasks, or workflows. Getting Started with Virtual Desktops Setting up and using Virtual Desktops in Windows 11 is a breeze: 1. Creating...