FileServe

Monday, June 27, 2011

Blocking Websites With the Hosts File

A lot of software cracks will usually allow you to run an application which edits your hosts file, usually in an effort to block your computer from accessing the software’s registry server. However, many of these hosts-patching programs have problems or downright fail at editing the hosts file for certain Windows operating systems. The good news is you can patch the hosts file yourself, as long as you know the URL of the site you wish to block or redirect.

Editing the Hosts File (Windows 7)

1. Click on the Start (Windows) button
2. Click on Computer
3. Navigate through Windows Explorer through the following folders:
1. C:/
2. Windows/
3. System32/
4. drivers/
5. etc
4. In “etc” folder, select the hosts file and copy and paste it to your desktop.
5. Double click on the hosts file in your desktop
1. Select to open it through Notepad
6. Make edits to it in Notepad
7. Save using Ctrl+S
8. Drag and drop the hosts file back into the “etc” folder
9. Select “move and replace file” to overwrite the original file

Your hosts file should look something like this:

To block a website, you simply add the following to the bottom of the hosts file in Notepad:
127.0.0.1 siteyouwantblocked.com

So if I wanted to block MySpace, I would type:
127.0.0.1 myspace.com
And then I would get this if I typed myspace.com into a browser:



By: Anoj_Anjo

Follow me on twitter/myspace/wayn/facebook: anoj_anjo

No comments:

Post a Comment