DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to Block Website without any Software

20 posts · originally from https://geek.digit.in/community/threads/how-to-block-website-without-any-software.86018/

dhanusaud
dhanusaud Original post #1
Apr 22, 2008 at 6:24 PM
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 "127.0.0.1 localhost" just add the site you want to block

e.g.
127.0.0.2 www.orkut.com
127.0.0.3 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.

127.0.0.1 localhost
127.0.0.2 www.orkut.com
127.0.0.3 www.santabanta.com
127.0.0.4 www.google.com
T
Apr 22, 2008 at 6:32 PM
Seen on this forum earlier as well. Don't forget to mention the source
dhanusaud
Apr 22, 2008 at 6:51 PM
Seen on this forum earlier as well. Don't forget to mention the source

thankx for prompt.
anyway I also don't know the exact source. If I know I will provide the source in next threads.:-(
skeletor
Apr 29, 2008 at 2:02 PM
Knew this before...

It is going to be helpful for those who don't know.....
victor_rambo
Apr 29, 2008 at 2:19 PM
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)
S
saching #6
Apr 29, 2008 at 2:25 PM
@rohan,

It will work only for IE :). For any browser(firefox,safari,opera,flock etc...) installed in your PC, the above method is useful.
thetillian
May 3, 2008 at 11:57 AM
Hey thanks its working with opera too and once again thanks.
it_waaznt_me
May 4, 2008 at 2:48 AM
Well.. Whats the logic of increasing the last digit ? Usually its done like this :

127.0.0.1 orkut.com
127.0.0.1 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 127.0.0.1 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 0.0.0.0 instead of 127.0.0.1 . If you put 0.0.0.0, 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 0.0.0.0 is an invalid ip. So try putting 0.0.0.0 instead of 127.0.0.1 ..
dheeraj_kumar
May 4, 2008 at 9:26 AM
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.

@it_waaznt_me
Thanks for the tip, it sounds useful :)
iMav
iMav #10
May 4, 2008 at 9:40 AM
badey badey words use kar raha hai, college mein kal sikhe aur aajidhar type kar diye :lol:
JGuru
JGuru #11
May 4, 2008 at 12:16 PM
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!!!
M
mkmkmk #12
May 7, 2008 at 9:24 AM
thanks
Zangetsu
Zangetsu #13
May 8, 2008 at 10:00 AM
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
A
May 8, 2008 at 1:25 PM
that's a good method.
M
May 11, 2008 at 1:28 PM
its nt working for me....:(
saROMan
saROMan #16
May 11, 2008 at 3:21 PM
well ddnt knew about it..and works great for me..tryed opening with IE/Opera/GreenBrowser..etc .....It Works ...Thx a lot
dheeraj_kumar
May 11, 2008 at 3:29 PM
@Jguru
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.
anurodhjindal
May 11, 2008 at 5:42 PM
This is not working for me.........:mad:
topgear
topgear #19
May 12, 2008 at 8:53 PM
Old method
remrow
remrow #20
May 12, 2008 at 10:29 PM
that was of great help!