This idea is also in the instructable here.
Step 1: What You Need
Access to the system 32 folder located at C:\WINDOWS\system32
(If you can get into My Computer and Type that in the address bar - it will work!)
An Internet Connection
A Browser - All Windows computers come with IE but Firefox is Far Superior
If you have all of that move to step 2!
Step 2: Lets Get Into CMD!
People who just opened CMD the long way - skip this paragraph (not step)! Goto start, run and then type cmd into the box and press OK. If cmd says it is disabled - do the above (Paragraph 1).
Ok, so you've got cmd open now... Go to step 3!
Step 3: Pinging Your Site
Write down the IP address - we will need it later
Step 4: Finding the Hosts File.
A comment from aneel persuaded me to add this:
On unix-style machines (including Linux and Mac OS X), the hosts file is /etc/hosts. You'll likely have to be an administrator to edit it. Try this in terminal on the Mac:
sudo open /etc/hosts
And this in a terminal on the Linux box:
sudo emacs /etc/hosts
sudo vi /etc/hosts
In the menu bar click on tools, folder options. Navigate to the view tab and click on the show hidden files and folders. click apply and then OK.
Doble click on "Hosts".
Select Notepad to open the file with.
At the bottom under the local host type the IP Address you wrote down earlier. Make sure that you include the dots in the number. Then put a space then type the fake domain name; I found out that if it has google in it blocking systems are less likely to block it. I made mine yes.google.com
An example of what to type to redirect yes.google.com to instructables.com: 126.96.36.199 yes.google.com
Step 5: FINISHED
This is very useful for if you need to access a blocked site at your school or work and have access to my computer!
Hope it's worked,
PS if you have any suggestions or positive criticisms to make, feel free to in the comments - but remember about the be nice policy!
Step 6: Added Bonus to Block Sites!
eg. 0.0.0.0 porn.com
Means that if I go to porn.com... which I wouldn't be - I'm only 13 - it will block it so I will not be able to get to it.
This is a simple way of blocking sites from your children or anyone who doesn't have a basic knowledge of the internet (or as i like to call it - The World Wide Web!)