Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Permanently Blocking Websites?


  • Please log in to reply
6 replies to this topic

#1 Professional

Professional

  • Members
  • 280 posts
  • OFFLINE
  •  
  • Local time:06:59 AM

Posted 10 February 2006 - 09:52 PM

Hey,
I have some website which I want to permamnently block-out. How do I do that? Like maybe through Host Files, Im talking about day-to-day sites like google, yahoo and other sites (Not these but I used them for examples) Thanks in advance!!
Posted Image

BC AdBot (Login to Remove)

 


#2 RandomUser

RandomUser

  • Members
  • 518 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:59 AM

Posted 10 February 2006 - 10:24 PM

Well, there are several ways with which to block a Site. I suppose it depends on what you ultimately hope to accomplish by doing this.

Do you want to block the website on several computers? On one Computer? Who Do you want to block? Everyone or just basic users?

You could use the Registry and place it in NIS or Windows Firewall so it would be Hardcode it. You could Script it, Place it in Blocked sites in IE, or you could Block it via a Router.

What would you like to do?

#3 gunner

gunner

  • Members
  • 337 posts
  • OFFLINE
  •  
  • Location:Pensacola, Florida
  • Local time:07:59 AM

Posted 10 February 2006 - 10:24 PM

Open Windows Explorer.

Browse to C:\WINDOWS\system32\drivers\etc.

Find the file named "HOSTS".

Open the file in notepad.

Under "127.0.0.1 localhost" add 127.0.0.2 www.name_of_the_site_to block.com. So, if you'd like to block www.hotporn.com, the code will look like this:
127.0.0.1 localhost
127.0.0.2 www.hotporn.com

The site is now blocked.

If you want to block another site, just repeat the process with the next number in the 127.0.0 sequence. For example:
127.0.0.3 www.blocked_site.com
127.0.0.4 www.blocked_site.com

copied from the web, used it once and it worked.
Spike's advice: Backup your data routinely.

#4 Professional

Professional
  • Topic Starter

  • Members
  • 280 posts
  • OFFLINE
  •  
  • Local time:06:59 AM

Posted 10 February 2006 - 11:01 PM

Okay Thanks Gunner, Just one thing there are already stuffed blocked there by Spybot S&D but from about 120 Sites Blocked it all have 127.0.0.1 instead of:
127.0.0.3
127.0.0.4
What should I do? Continue like that or your way? Should I start typing after the Spybot's Hosts Files or before that?

Thanks!

EDIT: There are two Host Files? One with Spybots Changes one without! Which one should I edit? And would it work with all browsers or just IE?

Edited by Professional, 10 February 2006 - 11:04 PM.

Posted Image

#5 Floydoid

Floydoid

  • Members
  • 144 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:East of Eden
  • Local time:12:59 PM

Posted 11 February 2006 - 05:59 AM

You should edit the one that is just called 'Hosts' - with no extension. ;)
Posted Image "Is it any wonder that the monkey's confused?"

#6 quietman7

quietman7

    Bleepin' Janitor


  • Global Moderator
  • 51,726 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Virginia, USA
  • Local time:07:59 AM

Posted 11 February 2006 - 06:58 AM

The Hosts file is more of a legacy of early IP networks and was never really designed for large-scale blocking of unwanted sites. IE-Spyad, SpywareBlaster and Peer Guardian are better alternatives for blacklisting outbound connections.

Hosts File FAQS: http://www.mvps.org/winhelp2002/hostsfaq.htm

How to Use a Hosts File:
http://www.bleepingcomputer.com/tutorials/hosts-files-explained/
http://castlecops.com/article-5660-nested-0-0.html
http://www.mvps.org/winhelp2002/hosts.htm
Editor's Note posted at mvps.org: In most cases a large HOSTS file (over 135 kb) tends to slow down the machine. This only occurs in W2000 and XP. Windows 98 and ME are not affected.
(scroll down the page about halfway)

Example HOSTS file: http://www.bleepingcomputer.com/misc/hosts

Custom Hosts files available for download:
Mike's Ad Blocking Hosts file: http://everythingisnt.com/NoAdHOSTS.exe
Instructions: http://www.everythingisnt.com/hosts.html

MVPS HOSTS File zipped version: http://www.mvps.org/winhelp2002/hosts.zip
MVPS HOSTS File text version: http://www.mvps.org/winhelp2002/hosts.txt
.
.
Windows Insider MVP 2017-2018
Microsoft MVP Reconnect 2016
Microsoft MVP Consumer Security 2007-2015 kO7xOZh.gif
Member of UNITE, Unified Network of Instructors and Trusted Eliminators

If I have been helpful & you'd like to consider a donation, click 38WxTfO.gif

#7 Professional

Professional
  • Topic Starter

  • Members
  • 280 posts
  • OFFLINE
  •  
  • Local time:06:59 AM

Posted 12 February 2006 - 02:54 AM

Ok Thanks One of them is just a File without an extension but thats the one with Spybot's Changes the other is a MSN File without any changes? Which one? Thanks
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users