Wednesday 2 April 2014

block websites without using any software

This is very easy to block website you have to do only small changes in the "hosts" file with is present in the
"C:\Windows\System32\drivers\etc" pasth.(Windows)

Step 1:
Open host file and add this line to the end of the file "127.0.0.1           example.com" . example.com is the website name you want to block.

Step 2:
type all the possible way to write the website for example.

127.0.0.1           example.com
127.0.0.1           www.example.com
127.0.0.1           http://example.com
127.0.0.1           http://www.example.com
127.0.0.1           http://example.com
127.0.0.1           https://www.example.com

Step 3:
save the file. (some time file is not able to save then save as that file on desktop and cut it from desktop and paste into "C:\Windows\System32\drivers\etc" directory)

OR you can make software to block website using this method in c++,java by Using file input ,output stream.

No comments:

Post a Comment