Follow to steps to block a website:

Click Start --> All Programs --> Accessories --> Command Prompt

Type "notepad C:/Windows/System32/drivers/etc/hosts" (without quotes)

Now notepad will be opened.

To block the website example google.com, Add the following text under 127.0.0.1 localhost:

127.0.0.1 yahoo.com
127.0.0.1 www.yahoo.com

Save the file. That's it !

Now how to unblock a website

Click Start --> All Programs --> Accessories --> Command Prompt

Type "notepad C:/Windows/System32/drivers/etc/hosts" (without quotes)

Now notepad will be opened search the lines: example

127.0.0.1 google.com
127.0.0.1 www.google.com

and deleted it. That's it !

You can add as many sites, However you will need to prefix it with "127.0.0.1"

Note: You can block a website from your browser also but this is an advanced method not many will be knowing it :)