View Single Post
  #8  
Old November 28th 04, 12:51 AM
Lanwench [MVP - Exchange]
external usenet poster
 
Posts: n/a
Default HOSTS file and blocking

Dan Irwin wrote:
yup, that fixed it. Thanks


Glad to help. Using the hosts file isn't the best way to manage this sort of
thing, although it's useful in its own way (and is certainly inexpensive).

"Lanwench [MVP - Exchange]"
ahoo.com wrote in
message ...
Dan Irwin wrote:
I get 127.0.0.1, but the site still works in both iexplorer and
firefox


With www.sitename.com, right? If you just typed in sitename.com it
should work. If you need www., etc., you need to enter them
separately.

"Lanwench [MVP - Exchange]"
ahoo.com wrote in
message ...
Dan Irwin wrote:
Hi,



Recently I have been using the hosts file to block certain
websites. This has worked for many websites, but it hasn't for
two perticualr ones: ccbill.com and victoriasecrets.com Could
there be a reason that it doesn't work for those websites?



Heres what I've put in to block them:

127.0.0.1 victoriassecret.com

127.0.0.1 victoriassecret.com

127.0.0.1 victoriasecret.com

127.0.0.1 victoriasecrets.com

127.0.0.1 victoriassecrets.com

127.0.0.1 ccbill.com

127.0.0.1 213.61.5.9

127.0.0.1 213.61.5.16



213.61.5.9 and 213.61.5.16 are the ip addresses I got when I did a
dns lookup on victoriasecrests.com

You can't put the public IP addresses in your hosts file like that.
Hosts maps IP addresses to host names - it isn't used to redirect
one IP to another IP.

If you remove the two latter entries, save the hosts file, and then
open a command prompt, and type

nbtstat -R enter
and then
ping ccbill.com enter

what IP address do you get in return?



Thanks for your help,



Dan



P.s



I have xp pro and I use fierfox and IE and have the spybot list
installed on my HOSTS file.



Ads