HOSTS file and blocking

D

Dan Irwin

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



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.
 
J

Jerry

Go here http://w3.quipo.it/gcriaco and get FastNet99 v4.3 and see if it helps. (Free).

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



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.
 
L

Lanwench [MVP - Exchange]

Dan said:
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?
 
C

Chuck

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>

Also remember that "127.0.0.1 victoriasecrets.com" will block
victoriasecrets.com only. It won't block WWW.victoriasecrets.com.

Blocking access to websites, by using a hosts file, is a cheap and dirty
solution to a problem. But it isn't efficient - you have to have a separate
entry for every server (by full name).

For hierarchical filtering, you need either DNSKong
<http://www.accs-net.com/hosts/DNSKong.html>, or Proxomitron
<http://proxomitron.cjb.net/>.
 
L

Lanwench [MVP - Exchange]

Dan said:
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]"
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?
 
D

Dan Irwin

yup, that fixed it. Thanks

Lanwench said:
Dan said:
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]"
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.
 
L

Lanwench [MVP - Exchange]

Dan said:
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]"
Dan said:
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]"
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top