MSFN Forum: How To Block Websties Without Software - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

How To Block Websties Without Software Rate Topic: -----

#1 User is offline   quicksilk 

  • Newbie
  • Group: Members
  • Posts: 46
  • Joined: 22-May 04

Posted 24 February 2005 - 02:35 PM

hi! :) everyone!! specially to the administrator

i just want to share this cool! tutorial on how to block a site without software installed!!?? :) origin... shareodie

Steps:

1] Browse C:\WINDOWS\system32\drivers\etc
2] Find the file named "HOSTS"
3] Open it in notepad
4] Under "127.0.0.1 localhost" Add 127.0.0.2 www.sitenameyouwantblocked.com , and that site will no longer be accessable.
5] Done!

-So-

127.0.0.1 localhost
127.0.0.2 www.blockedsite.com

-->www.blockedsite.com is now unaccessable<--


For every site after that you want to add, just add "1" to the last number in the internal ip (127.0.0.2) and then the addy like before.

IE: 127.0.0.3 www.blablabla.com
127.0.0.4 www.blablabla.com
127.0.0.5 www.blablabla.com

hope this helps


#2 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 24 February 2005 - 03:01 PM

you don't need to add a 1 to each entry
here's mine, stops a LOT of ads

Attached File(s)

  • Attached File  hosts.txt (33.56K)
    Number of downloads: 78

This post has been edited by xper: 14 March 2005 - 02:32 AM


#3 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03

Posted 24 February 2005 - 05:36 PM

codebox right :D
i agree in the "not adding 1"
also erm what happens when u have 500 entries
after 255 do u increase the 2nd digit? :P
like 127.0.1.0, i don't think so...

#4 User is offline   un4given1 

  • Elaborate Dreamer
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,796
  • Joined: 25-September 03

Posted 24 February 2005 - 06:23 PM

When you request an address your computer contacts a DNS server to find it's IP.... but before accessing a DNS server it checks it's entry in the HOSTS file. If there is an entry in the HOSTS file it automatically uses the IP address there. 127.0.0.1 is the reserved IP address of your local PC. Haven't you ever seen the bumper sticker on some geeks car? "There's no place like 127.0.0.1" meaning there's no place like home :) Anyways, if you have a web server running on your PC and you use that address you will get your website instead of nothing...

#5 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

Posted 24 February 2005 - 10:59 PM

Quote

if you have a web server running on your PC and you use that address you will get your website instead of nothing


if not running a webserver, would it be possible to have it pull up at webpage say from the system32 folder?

#6 User is offline   un4given1 

  • Elaborate Dreamer
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,796
  • Joined: 25-September 03

Posted 24 February 2005 - 11:25 PM

I do not believe so. You could try using "file:///c:/windows/system32/file.htm" but I am not sure if that will work..

#7 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 24 February 2005 - 11:31 PM

IMO, using the hosts file makes the internet browsing slower, cuz for each page it has 2 parse the hosts file 2 see if such a site is in there id rather use an ad blocker if needed & spyware blaster (or reg entries)

#8 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

Posted 24 February 2005 - 11:58 PM

yeah i had no such luck using the file:///c:/windows/system32/file.htm, it only keeps going to the search results for the site being blocked, even when clicking on the link to the blocked site it goes to the famous: page cannot be displayed, so i know the blocking is working..........oh yeah i did change the file name on it too.....

#9 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03

Posted 25 February 2005 - 03:53 AM

@mct most ad blockers also use hosts...

#10 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 February 2005 - 11:47 AM

The other non-firewall (or software) alternative is to use registry entries in IE's restricted sites. And doing that is a VERY bad option.
The hosts blocking method is far better.

#11 User is offline   gamehead200 

  • SEARCH!!! SEARCH!!!
  • Group: Super Moderator
  • Posts: 7,019
  • Joined: 02-September 02
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 February 2005 - 03:16 PM

I've known this for a LONG time... :wacko:

#12 User is offline   Nutso 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 09-November 04

Posted 07 March 2005 - 12:33 PM

I just tried this but the ads are still popping up. Any ideas why?

#13 User is offline   KAndle 

  • XXX
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 09-March 05

Posted 14 March 2005 - 02:11 AM

Bloatbusters Sliencer automates this process with many known ad sites. Download.com shows page cannot be display very often where ads should be.

#14 User is offline   xper 

  • Insane Clown
  • Group: Administrator
  • Posts: 15,557
  • Joined: 16-August 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 March 2005 - 02:35 AM

bledd, on Feb 24 2005, 10:01 PM, said:

you don't need to add a 1 to each entry
here's mine, stops a LOT of ads
<{POST_SNAPBACK}>


Nice to see that you also added Google Ads. Great for MSFN. Thanks for that.

Closed


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy