Tech Tips Home
The Best Tech Tips And Daily Deals
Newsletter On The Internet!

WorldStart Tech Tip And Store Search
Email: Password: Login Remember Me

Like what you see here? Subscribe to the Tech Tips newsletter!   Email: Subscribe

Block Specific Websites on your Computer

Tuesday, January 26th, 2010 by | Filed Under: Desktop Enhancement

You might have the knowledge of how to block and unblock selected sites in browsers like Internet Explorer and Mozilla Firefox, but what about blocking specific websites on all browsers? If you block some websites on your computer, nobody can access them through any means unless you decide to unblock them. It’s easy, so let’s check it out!

The need to block sites arises due to different reasons. Most often parents wish to block those sites that are not appropriate for their children, especially those related to pornography, social networking and gambling. In some instances, the spamming sites and unsecure sites that pose a problem for the frequent surfers can be restricted by blocking the problematic URLs.

All you have to do is explained here.

Go to the Start>Run and type “cmd”. Click on OK so that the Command Prompt Window appears.



In the Command Prompt Window, type “notepad C: /Windows/system32/drivers/etc/hosts” minus the quotes, and hit the Enter key.


You can see the hosts file notepad popped out. In the notepad, you will enter the list of sites that need to be blocked in your system.


Note: An alternate option to access the notepad is to go to My Computer icon and follow the path My Computer>Local Disk (C :) >Windows>system32>drivers>etc to locate the hosts file in etc folder. Right-click on the hosts file and open with notepad.

Once you reach the notepad, find the line localhost from the notepad entries. Below the line, type and after a space, enter the address of the website to be blocked in “” or “” format, depending on the URL of the site.

For example, if you wish to block the site http://, type “” and in order to block, type “”. Remember to give the exact portion of the URL that comes after “http://” for main domains as well as subdomains.


In order to block multiple sites, give the URLs of the sites in separate lines, each followed by and it looks somewhat like this. Many sites use the and version of the URLs, so be sure to include both.

Go to the File menu in notepad and select Save to save the file. Now close all the browsers you are using and restart then to check if the blocked websites can be accessed. Type the blocked site’s URL in the address bar of the browser and hit Enter key to see the results. All you can view is an error page or the local web page in your system.

How does it work?

Curious to know how it happens? When you prefix “” before any site URL, you are redirecting it to your local machine whose IP is

You can also use another known IP instead of, to redirect the blocked site to another website. Test it and enjoy the fun!

To unblock the sites just follow the same steps and delete the entries you have entered in the notepad. As you know, it is important to know how to undo it, otherwise you will be trapped!

~Liya Jose

Leave a Reply

Like these tips? Get them for FREE in your email!

WorldStart's Tech Tips Newsletter

  • Tech Tips Daily - Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

  • Tech Tips Weekly - If you don't want our Tech Tips newsletter every day, then sign up for this weekly newsletter to get the best information of the week. Sent on Fridays.

Other Newsletters

  • WorldStart's Daily Deals - Every week, we send out great deals in our Daily Deals newsletter. Many of these deals are exclusively for our Daily Deals newsletter subscribers and can't be found with our regular specials.

  • Just For Grins - Each issue includes a couple clean jokes, some funny quotes, and a hilarious reader's story. Newsletter is sent five days a week.

Enter Email Address:


Your e-mail address is safe with us!
We only use it to send you the newsletters you request. It is NEVER disclosed to a third party for any reason, ever! Plus, if you decided you don't like our newsletters (don't worry, you'll love them), unsubscribing is fast and easy.

Free Newsletter Signup

Tech Tips Daily

Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

Tech Tips Weekly

The week's best in tech and computer help. Get your issue sent to your email every Friday!

WorldStart's Daily Deals

The very best deals on the Internet! Get a new set of incredible sales every day of the week!

Just For Grins

Clean jokes, funny quotes, and hilarious comics. Sent 5 times a week straight to your email.


Love Worldstart? Refer A Friend!

WorldStart's Premium Membership

Tip Archive