How to Block a Website in Windows 7, 8, and 10

If you want to block certain websites that contain virus’s and illegal contents, you can restrict these sites easily. A lot of reasons to set restriction for certain websites, the most common reason is preventing child to accessing gambling and adult sites. In industrial zone, it helps to increase productivity by denying unwanted sites on the employee’s computer. There are four methods for blocking sites.

4 Methods to Block any Website in Windows 7, 8, 8.1 and 10

  1. Block a website in Windows 7 (Hosts File)
  2. Block a website in Internet Explorer
  3. Block a website by Third Part Softwares
  4. Block a website by Internet Router

In this article, I will disuse about all the methods in detail.

1. Block a website in Windows 7 with Hosts File

It’s a simple trick to restrict any site in Windows 7, Vista and XP. You can do this for editing windows “Hosts” file that is located in Windows installation directory. So, let’s start

  1. Click on My Computer and open your Windows installation drive. Generally “C drive”.
  2. Go to Windows>System32>drivers>etc
  3. Find “Hosts” named file in “etc” folder and open it in Notepad.
  4. In notepad click on File>Open> and go to destination path of “hosts” file which is C:\Windows\System32\drivers\etc\
  5.  Under localhost enter the site name.
  6. [space][]. for example; you want to block Facbook and Yahoo, you need to enter:

       7. Save the File. Try it

Technical Points:

  1.  You need to open Notepad with Administrator Rights, For this Go to Start Menu>Accessories>Notepad (Right click on notepad and click on Run as Administrator).
  2. Under the local host line you must enter IP address,then [one space]and [sitename].
  3. Remember you must enter at least one space between IP address and site name.
  4. This trick works only in configured computers, you can still access the site via Tablets, Android devices and Mobiles.
  5. This method could easily bypass if users have some basic knowledge of “Hosts” file. They can edit it and can access individual web pages again.

2. How to Block a website in Internet Explorer

(coming soon)

3. How to Block a website by Third Part Softwares

(coming soon)

4. How to Block a website by Internet Router

(coming soon)


I hope this topic will help you for blocking any unwanted sites. If you have any problem with this method, feel free to ask in comments. Browse safely Cheers 🙂

Muhammad Imran

Muhammad Imran is an enthusiast blogger and engineering graduate. He has good skills in WordPress and Blogspot, Blogging Tips, SEO, Make Money Online, Computer tips and also Creating tutorials. He loves to share inspiring and creative ideas with online community related to blogging.

Click Here to Leave a Comment Below 0 comments

Leave a Reply:

Pin It on Pinterest

Share This