Thursday, October 11, 2012

How to block or unblock a website

To block a website from opening that temporarily or permanently we have several steps to follow:

          At first, you must know that it is not hazardous to your system, that you may or may not turn it on and off every time when you want to block the website.
Note : This trick was been done in only windows operating system

Step 1 : At first goto you desktop "My Computer" icon and double click that.

Step 2 : Now goto the drive with which your operating system was been installed. For example considering the default drive as c:\.



Step 3 : Now move to the windows folder in it and open the system32 folder.

Step 4 : In the System32 folder, goto the "drivers" folder and again goto "etc" folder. The link of above provides the "C:\Windows\System32\drivers\etc". Or directly goto command mode and type "cd C:\Windows\System32\drivers\etc" without quotes

Step 5 : There you will find the "hosts" file, which was made editable.

Step 6 : Now open that file in notepad then it already written with some code. So you no need to edit that code. you had to do is add some code at the end of the code with "127.0.0.1          'Website name' ".
for example if ou want to block facebook then type as 
"127.0.0.1          www.facebook.com". You can add more websites in next line.

                If you want to unblock the blocked websites edit the hosts file and clear the website you want to unblock which you had typed in it.

Note : Be careful don't delete any code from the default code.