Search This Blog

Tuesday, 6 June 2017

How to Block a Website with the Hosts File in Windows

The Windows Hosts file is a file that Windows uses to control and map IP addresses. By editing the Hosts file, Windows can be customized to block or redirect specific websites and even protocols that are used by programs and applications.

Step 1: Click on Start and type in Notepad, right-click the Notepad Select the option Run as Administrator.
notepad-run-as-admin
Step 2: With Notepad open, select File > Open.
11111
Step 3: Then go to following path C:\Windows\System32\drivers\etc.  You will get a blank screen that displays the prompt No items match your search. Change Text Documents (*.txt) to All Files using the drop down menu. Now, you can select the hosts file and click Open.
open-hosts-file
Step 4: Then you will get the Host file, Now you have edit it.
hosts-file-notepad
Step 5: Blocking a website in Windows is as simple as typing the following into the bottom of the hosts file, IP address and Domain name. and save the file
ip
If any one try to access this website means they will got the below error message
site-cannot-be-reached



Thank You…..!

No comments:

Post a Comment