Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 22-04-2008, 06:24 PM   #1 (permalink)
Alpha Geek
 
dhanusaud's Avatar
 
Join Date: Dec 2006
Location: Pokhara/Nepal
Posts: 574
Wink How to Block Website without any Software


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
__________________
my blog http://www.dhsthemes.blogspot.com
themes for symbian phones
dhanusaud is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-04-2008, 06:32 PM   #2 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default Re: How to Block Website without any Software

Seen on this forum earlier as well. Don't forget to mention the source
ThinkFree is offline  
Old 22-04-2008, 06:51 PM   #3 (permalink)
Alpha Geek
 
dhanusaud's Avatar
 
Join Date: Dec 2006
Location: Pokhara/Nepal
Posts: 574
Default Re: How to Block Website without any Software

Quote:
Originally Posted by asnvin View Post
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.
__________________
my blog http://www.dhsthemes.blogspot.com
themes for symbian phones
dhanusaud is offline  
Old 29-04-2008, 02:02 PM   #4 (permalink)
ico
.
 
ico's Avatar
 
Join Date: Jun 2007
Location: New Delhi
Posts: 8,936
Default Re: How to Block Website without any Software

Knew this before...

It is going to be helpful for those who don't know.....
__________________
.
ico is offline  
Old 29-04-2008, 02:19 PM   #5 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: How to Block Website without any Software

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)
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 29-04-2008, 02:25 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2007
Posts: 14
Default Re: How to Block Website without any Software

@rohan,

It will work only for IE . For any browser(firefox,safari,opera,flock etc...) installed in your PC, the above method is useful.
saching is offline  
Old 03-05-2008, 11:57 AM   #7 (permalink)
The Revolutionary
 
thetillian's Avatar
 
Join Date: Apr 2008
Location: Andhra Pradesh
Posts: 65
Default Re: How to Block Website without any Software

Hey thanks its working with opera too and once again thanks.
thetillian is offline  
Old 04-05-2008, 02:48 AM   #8 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: How to Block Website without any Software

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 ..
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 04-05-2008, 09:26 AM   #9 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: How to Block Website without any Software

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
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 04-05-2008, 09:40 AM   #10 (permalink)
The Devil's Advocate
 
iMav's Avatar
 
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
Default Re: How to Block Website without any Software

badey badey words use kar raha hai, college mein kal sikhe aur aajidhar type kar diye
__________________
"The problem that shows up with the three red lights on the console is a complex interaction with some very complex parts.” - Robbie Bach

http://beingmanan.com
twitter: manan | Last.FM: manan
iMav is offline  
Old 04-05-2008, 12:16 PM   #11 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: How to Block Website without any Software

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!!!
__________________
* Imagination is more important than knowledge.
-Albert Einstein
JGuru is offline  
Old 07-05-2008, 09:24 AM   #12 (permalink)
In The Zone
 
Join Date: Nov 2005
Location: pune
Posts: 468
Default Re: How to Block Website without any Software

thanks
mkmkmk is offline  
Old 08-05-2008, 10:00 AM   #13 (permalink)
Fullbring
 
Zangetsu's Avatar
 
Join Date: Jan 2008
Location: Soul Society
Posts: 5,531
Default Re: How to Block Website without any Software

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...
__________________
I'm the One you've been Waiting for...
Zangetsu is offline  
Old 08-05-2008, 01:25 PM   #14 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Re: How to Block Website without any Software

that's a good method.
abhijangda is online now  
Old 11-05-2008, 01:28 PM   #15 (permalink)
In The Zone
 
Join Date: Feb 2007
Posts: 353
Default Re: How to Block Website without any Software

its nt working for me....
magneticme200 is offline  
Old 11-05-2008, 03:21 PM   #16 (permalink)
QA Juggler
 
saROMan's Avatar
 
Join Date: Aug 2004
Location: format c: /s/u/x
Posts: 801
Default Re: How to Block Website without any Software

well ddnt knew about it..and works great for me..tryed opening with IE/Opera/GreenBrowser..etc .....It Works ...Thx a lot
__________________
8-) सारोमान :!: :!: :!:
saROMan is offline  
Old 11-05-2008, 03:29 PM   #17 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: How to Block Website without any Software

@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.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 11-05-2008, 05:42 PM   #18 (permalink)
Right Off the Assembly Line
 
anurodhjindal's Avatar
 
Join Date: May 2005
Location: Bangalore
Posts: 40
Default Re: How to Block Website without any Software

This is not working for me.........
anurodhjindal is offline  
Old 12-05-2008, 08:53 PM   #19 (permalink)
Fast 'N' Furious
 
topgear's Avatar
 
Join Date: Jul 2006
Location: Geek's Heaven
Posts: 11,169
Default Re: How to Block Website without any Software

Old method
__________________
ToPsPeEeD = FaSt BuT StEaDy

AMD Radeon HD 6850 OverClocked to 1 Ghz !!!

Blog : http://topgeartopspeed.wordpress.com/
----------------------------------------------------
Never buy viewsonic products : http://tinyurl.com/ykwx4oa
topgear is offline  
Old 12-05-2008, 10:29 PM   #20 (permalink)
This.. Is.. Sparta..!!
 
remrow's Avatar
 
Join Date: Jan 2008
Posts: 46
Default Re: How to Block Website without any Software

that was of great help!
__________________
“Be peaceful, be courteous, obey the law, respect everyone, but if someone puts his hand on you, send him to the cemetery.” That’s what Malcolm X used to say.

http://likeweb.blogspot.com
remrow is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Block BADBOTS from crawling your website vaibhavtek Tutorials 17 20-11-2007 11:13 PM
How can I block a website from being viewed or opened on my computer? ajaybc QnA (read only) 11 23-10-2007 11:16 AM
How TO Block Website krates QnA (read only) 10 10-04-2007 07:31 AM
how to block a website prashantban QnA (read only) 8 21-10-2006 12:16 PM
How to block website using regedit dineshgaur1 QnA (read only) 7 17-04-2006 07:52 AM

 
Latest Threads
- by chris
- by icebags
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2