How to Block a Website on Your Windows 7 Computer

By Raman Sharma

on

If you don’t want to open any certain website on your computer, you can block that site by making a little change in Windows’ “hosts” file. It is the easiest way to block a website.Now you might be thinking that what is the hosts file and where it is placed in Windows 7? So, don’t worry dear friends! I will tell you the complete and step by step procedure to block a website on your Windows 7 computer.

Before illustrating the complete procedure, I would like to tell you that how is it helpful to you….

  1. By blocking a website parents can prevent their children to open websites which can leave the wrong effect.
  2. It may be helpful in many Institutions and Organizations to don’t distract student’s mind from the study.

[su_note note_color=”#f4f8f7″ text_color=”#222222″ radius=”2″]

Related Articles to Check:

[/su_note]

Let’s see the steps to block a website on your Windows 7 computer:

  • First of all you have to reach to “hosts” file by following the address >> C:\Windows\System32\drivers\etc. Remember that this address is for Windows 7. Now right click on “hosts” and select Properties.

Hosts File

  •  A window named “hosts Properties” will appear in front of you. Select Security and then select Users. Click Edit.

hosts Properties

  • In the next window “Permissions for hosts” again select Users and Check all the options except “Special Permissions” to allow permissions and then press OK.

Permissions for hosts

  • After that click on Advanced and then click on Change Permissions in the next window.

Change permissions

  • In the next window of “Advanced Security Settings for hosts” select Users and click on Edit.

Advanced security settings for hosts

  • Select all the options in “Permission Entry for hosts” window and then Press OK button of all windows.

Permission Entry for Hosts

  • Dear friends! We are going to reach to the final step. Now open the hosts file by double clicking on it with a suitable text editor like Notepad.

Open hosts file in Notpad

  • Now you will see the following encrypted file. Point your cursor after the last word of the last line and hit Enter. To block a website type 127.0.0.1 and give the single space and write the name of the website as 127.0.0.1 www.yahoo.in.

hosts file in Notepad

[su_note note_color=”#f4f8f7″ text_color=”#222222″ radius=”2″]

Read Before You Leave:

[/su_note]

So we have done!! Now try open these websites in any browser. The web browser will not open the blocked websites. I hope the article will help you to block websites in Windows 7 computer.

Share This Post:

8 thoughts on “How to Block a Website on Your Windows 7 Computer”

  1. hi Sharma JI.
    my name is sai.
    i’m having small internetcafe. in that i blocked (www.facebook.com) some websites but some users opening the (www.m.facebook.com) sites.. with changing the settings. I want fully blocking website method. they are not opening that one if any changes may be done. i want keyword blocking in the system. help me.
    how to block the keyword(face book) in system.

    Reply
  2. I cannot get a specific website to block using notepad. I’ve tried numerous times with no success. I blocked others the same way and it worked right away. What do yo think is wrong?

    Reply
    • Hi Bob,

      Some sites may cause problem in blocking using this method such as Facebook.

      So, if you’re feeling problem in blocking a specific site using Notepad, then I recommend you to go through a site blocking software like K9 Web Protection and many software on the web for blocking different type of websites.

      Hope that helps, Keep visiting.

      Reply
  3. Very well written story. It will be supportive to anyone who usess it, including myself. Keep up the good work – i will definitely read more posts.

    Reply

Leave a Comment