You need not waste money on buying software's to block websites you can use this method to block any website you want
How to Block websites without any Software
1. To block websites we need to edit Host file which is usually in C:/Windows/System32/drivers /etc
2. To edit Hosts file open notepad click open and go to C:/Windows/System32/drivers /etc
3. Open the host.file which looks like image shown below
4. Now enter 127.0.0.1 and the "website you want block " without quotes
5. You can add all the websites that you want to block in the same format and finally click save That's it we have successfully blocked websites by editing the hosts file
6. If you find it difficult to do it manually every time you can make a batch file to block websites
Example :-
Code: Select all
[b]@echo off
echo 127.0.0.1 www.google.com >> C:\windows\system32\drivers\etc\hosts.txt
echo 127.0.0.1 www.yahoo.com >> C:\windows\system32\drivers\etc\hosts.txt
exit[/b]
Hope you liked this post .If you have any doubts please feel free to comment