• CONTEST ALERT - Experience the power of DDR5 memory with Kingston Click for details

How to Block Website without any Software

Not open for further replies.


Ambassador of Buzz
Well, may be this trick posted before. I must say sorry & request moderators to delete this post if it is reposted .

Here is the trick how to block website without any software.

Block website without any Software

Go to C:\Windows\System32\Drivers\Etc
Find the File named "HOSTS"
Open the said file with the help of Notepad
Under " localhost" just add the site you want to block

e.g. www.orkut.com www.santabanta.com

Save the file & exit notepad. (Some antivirus may prompt you the changes, simple allow the changes to take effect.)

Now both website are blocked at all.

Just add anyother website you want to block but remember last number must increase in every website.

e. g. localhost www.orkut.com www.santabanta.com www.google.com


Super Moderator
Staff member
Knew this before...

It is going to be helpful for those who don't know.....


हॉर्न ओके प्लीज़
If I am not wrong, in IE there is an an option for you to black sites.
I think its Toosl->Options->Content->Restricted sites
(Sorry don't remember correctly)


Broken In

It will work only for IE :). For any browser(firefox,safari,opera,flock etc...) installed in your PC, the above method is useful.


Coming back to life ..
Well.. Whats the logic of increasing the last digit ? Usually its done like this : orkut.com thinkdigit.com

If Windows will find these entries in hosts file, it wont query the dns for the IP address attached to these domains, instead it will try connecting to which actually is your own computer. On most machines, there wont be any web server running so the user will get Cannot find server message.

Not to sound like boasting but I posted this in 2004 I guess and then we had a discussion of putting instead of . If you put, you'll get the response fast (Cannot find server response) and it wont make your system slow (your system trying to connect to a non existent web server on your machine ) as is an invalid ip. So try putting instead of ..


Legen-wait for it-dary!
Yeah, there is no logic in changing the last octet. The whole range is the loopback adapter, and invariably all are going to connect to the same localhost machine.

Thanks for the tip, it sounds useful :)


The Devil's Advocate
badey badey words use kar raha hai, college mein kal sikhe aur aajidhar type kar diye :lol:


Wise Old Owl
Yeah, This method will work. In Linux the file is "/etc/hosts". You can add the sites you want to block in the file.
The method suggested by @Rohan_Shenoy will also work in IE. But these restrictions can be easily broken, if any person
knows these tricks!!!
The best way to block a site is my Kernel-level programming in C/C++. Make this
program run as a TSR & also make it invisible from all the System processes!!!
So the program will run silently, won't be listed in the processes running & can't
be stopped or hacked easily!!!


I am the master of my Fate.
This method is good w/o any software....

but 4 blocking 100 sites or more...:( we have 2 use a software....

I use hostmans its free & very nice features.....as compared 2 others...:D


QA Juggler
well ddnt knew about it..and works great for me..tryed opening with IE/Opera/GreenBrowser..etc .....It Works ...Thx a lot


Legen-wait for it-dary!
How would you block a site using low level programming? check for the window class and close the window if the url was found? or hook some function? Please post as it may be useful for people.
Not open for further replies.
Top Bottom