How To Block Websites Without any Software

There are many reason why you need to know how to block a website. Some of the most common reasons are you have been targeted by spammers who use adware and popups to attack your PC. Other reasons may be to prevent your children from having access to certain site content such as porn and gambling.

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   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 :-
@echo off
echo >> C:\windows\system32\drivers\etc\hosts.txt
echo  >> C:\windows\system32\drivers\etc\hosts.txt

7. Copy the above code in a note pad and save it as something.bat .Now once you click the the batch file and are blocked you can modify the batch file according to your needs

 Hope you liked this post .If you have any doubts please feel free to comment 

Subscribe to Hackaholic

Enjoyed this article?
Subscribe to "Hackaholic"and get daily
updates in your inbox for free!

Related Posts Plugin for WordPress, Blogger...


it will work till you can't find that site in
when you find it in it will come to you and though you blocked that website you can be able to go in it...
but good work...

john said on March 5, 2011 at 4:28 AM :

no it will work !!! i am 100 % sure ..

you can find it in google but when you open it it will be blocked if
its not blocking try adding http:// in front



sure i have tasted these article when i was workin on windows security @ Appin Lab it work well.... pretty little trick nice one man u re doing a great work...


it's asking me to save the hosts file in another location when i modify it.. i am using windows7... could you help me?

John said on September 2, 2011 at 5:46 AM :


Right click and open notepad as administrator then follow the steps in the tutorial


yeah... its working.. thank you

Prashant said on December 11, 2011 at 6:21 AM :

cool site bro
(you can check out my blog abt gadgets too [but this is not intended to be a spam])

davidalive said on January 17, 2012 at 6:47 AM :

Thank you thanks a lot it worked

NaJeEb303 said on July 4, 2013 at 12:51 PM :

can you provide a batch script that will revert the change,, that is, will delete the these lines from the hosts file..??


Use the form below to comment. No spam please!!!

© 101hacker | Design by Mukund edited by John
Powered by Blogger