How to Block Access to a Website

By Gregory Hamel

Internet security is an important part of modern computing. Not only must one worry about protecting the data a computer contains--one must also prevent users from accessing data and content that they feel is compromising or inappropriate. A computer's administrator can take several steps to block inappropriate websites that children or other users may be attempting to view.

Blocking Site Access With Internet Explorer

Step 1

Uninstall any web browsers on your computer other than Internet Explorer. Internet Explorer is often the easiest browser to use to limit web site access.

Step 2

Open Internet Explorer, click "Tools," then select "Internet Options."

Step 3

Select the "Privacy" tab and click "Sites."

Step 4

Enter the website you wish to block in the field provided; click "Block," and then choose "OK."

Block Websites From Any Browser

Step 1

Click "Start," then select "All Programs." Choose "Accessories," then "Command Prompt."

Step 2

Type the following string into the DOS command prompt produced by Step 1: "notepad C:/Windows/System32/drivers/etc/hosts."

Step 3

In the notepad, find the line "127.0.0.1 localhost."

Step 4

Type "127.0.0.1," followed by the name of any website you wish to block under "127.0.0.1 localhost." For instance, if you wanted to block cnn.com, you would type "127.0.0.1 www.cnn.com" underneath "127.0.0.1 localhost."

Step 5

Save the altered notepad under "File," and close it. You can go back to this notepad at a later time and delete the strings you entered to enable the disabled sties.

Tips & Warnings

  • When blocking websites from users on your computer, make sure the blocked users must log in under their own user account, which does not have administrative privileges. If they have administrative access, they can reverse any attempts you make to block them.There are website blocking programs, such as Website Block, that can be downloaded and run to assist with blocking websites. Some firewalls and certain web browsers can also be configured to block certain websites.

References & Resources