Monday, 15 October 2012

how to block a site


Block web site with cmd

 1.) Open “Run” from the start menu (or press WinKey + r). Just copy paste the following path and hit ENTER.

 notepad %windir%\system32\drivers\etc\hosts

 Alternately, go to C:\Windows\System32\Drivers\Etc and find the file “hosts”. Open that file in Notepad.

 2.) When this hosts file is opened in Notepad, at the end of the file you will see something like “127.0.0.1 localhost”.

 3.) Under “127.0.0.1 localhost” just add another website URL that you want to block.

 For Example:-

 127.0.0.1 localhost
 127.0.0.1 www.google.com
 127.0.0.1 www.youtube.com

 4.) Save the file and exit.

 If your system says " system file cannot be changed, you need administrative rights to do so"

 then type UAC in start ment and hit enter........then a screen will popup......there you have to scroll it
 down to " never notify"
 then restart your pc for the settings to take effect

No comments:

Post a Comment