How long is your HOSTS file?

Specop 007

Diamond Member
Jan 31, 2005
9,454
0
0
I dont even know what the hell I use my hosts file for, nor how I use it.
So...0. Or 1. Whatever the default would be.
 
Jun 4, 2005
19,723
1
0
Originally posted by: Specop 007
I dont even know what the hell I use my hosts file for, nor how I use it.
So...0. Or 1. Whatever the default would be.

You can redirect website using your hosts file. It's an easy way of blocking a website, too.

Say you want to block MySpace, you should put this line in your hosts file:
127.0.0.1 www.myspace.com
And any attempt to connect to www.myspace.com would redirect you to 127.0.0.1(localhost)

My HOSTS file is dedicated to blocking ads.

Originally posted by: TheGoodGuy
i use mike's no ad hosts list.. so that is however long it is..


http://everythingisnt.com/hosts.html

About, 1360 lines.
 

sinucus

Senior member
Feb 3, 2004
266
0
0
I use firefox and adblock plus so I don't really have a need to use a HOSTS file anymore. Back in the day of IE5 my HOSTS file was about 5000 lines long.
 

sinucus

Senior member
Feb 3, 2004
266
0
0
Originally posted by: LoKe
Originally posted by: Specop 007
I dont even know what the hell I use my hosts file for, nor how I use it.
So...0. Or 1. Whatever the default would be.

You can redirect website using your hosts file. It's an easy way of blocking a website, too.

Say you want to block MySpace, you should put this line in your hosts file:
127.0.0.1 www.myspace.com
And any attempt to connect to www.myspace.com would redirect you to 127.0.0.1(localhost)

My HOSTS file is dedicated to blocking ads.

Originally posted by: TheGoodGuy
i use mike's no ad hosts list.. so that is however long it is..


http://everythingisnt.com/hosts.html

About, 1360 lines.

You forgot to tell him where it was.

%systemroot%\system32\drivers\etc
 

sinucus

Senior member
Feb 3, 2004
266
0
0
Originally posted by: LoKe
Originally posted by: sinucus
You forgot to tell him where it was.

%systemroot%\system32\drivers\etc

Or /etc/hosts.

I was assuming that since he had never heard of the hosts file that he wasn't using *nix, but he could have been use Mandrake, now that I think of it.

*sorry, I just love to make fun of mandrake
 

Specop 007

Diamond Member
Jan 31, 2005
9,454
0
0
Originally posted by: LoKe
Originally posted by: Specop 007
I dont even know what the hell I use my hosts file for, nor how I use it.
So...0. Or 1. Whatever the default would be.

You can redirect website using your hosts file. It's an easy way of blocking a website, too.

Say you want to block MySpace, you should put this line in your hosts file:
127.0.0.1 www.myspace.com
And any attempt to connect to www.myspace.com would redirect you to 127.0.0.1(localhost)

My HOSTS file is dedicated to blocking ads.

Originally posted by: TheGoodGuy
i use mike's no ad hosts list.. so that is however long it is..


http://everythingisnt.com/hosts.html

About, 1360 lines.

Oh my, this could be fun. My roommate is a Myspace whore....Hope she doesnt wanna get laid anytime soon..... :D
 

RichUK

Lifer
Feb 14, 2005
10,341
678
126
The normal local host resolution. Other than that I am routed through a corporate proxy.
 
Jun 4, 2005
19,723
1
0
Originally posted by: Specop 007
Oh my, this could be fun. My roommate is a Myspace whore....Hope she doesnt wanna get laid anytime soon..... :D

You can get creative with it, too.
Would redirect them to google. Think of the possibilities...

Originally posted by: MS Dawn
We're not allowed to use them. :Q

DNS > hosts.* :p

How large is the network you're on? =D
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: Specop 007
Originally posted by: LoKe
Originally posted by: Specop 007
I dont even know what the hell I use my hosts file for, nor how I use it.
So...0. Or 1. Whatever the default would be.

You can redirect website using your hosts file. It's an easy way of blocking a website, too.

Say you want to block MySpace, you should put this line in your hosts file:
127.0.0.1 www.myspace.com
And any attempt to connect to www.myspace.com would redirect you to 127.0.0.1(localhost)

My HOSTS file is dedicated to blocking ads.

Originally posted by: TheGoodGuy
i use mike's no ad hosts list.. so that is however long it is..


http://everythingisnt.com/hosts.html

About, 1360 lines.

Oh my, this could be fun. My roommate is a Myspace whore....Hope she doesnt wanna get laid anytime soon..... :D

I jsut installed the modified hosts file....very nice:D
 

sinucus

Senior member
Feb 3, 2004
266
0
0
Originally posted by: MS Dawn
We're not allowed to use them. :Q

DNS > hosts.* :p

wrong.

The HOSTS file is > "DNS" because you overrule the root servers. You explicitly declare that you want XXXXXXXX to resolve to XXX.XXX.XXX.XXX
 

jpeyton

Moderator in SFF, Notebooks, Pre-Built/Barebones
Moderator
Aug 23, 2003
25,375
142
116
One meeeeeeeelyun dollars.
 

sinucus

Senior member
Feb 3, 2004
266
0
0
Originally posted by: LoKe
But seriously, if you wanted to use it properly, you could do something like...

64.233.187.99 www.google.com

So that you try to connect to the IP, rather than resolve the address. ~_~

There is a slight problem with that though. Google rotates through at least 4 different server banks so that you get fresher results. About once a week or so they change IP's, or so I've seen.
 

Rubycon

Madame President
Aug 10, 2005
17,768
485
126
Originally posted by: sinucus

wrong.

The HOSTS file is > "DNS" because you overrule the root servers. You explicitly declare that you want XXXXXXXX to resolve to XXX.XXX.XXX.XXX

The policies on the networks over ride and prevent any use of the hosts file. It's much easier to manage thousands of computers - some often 1000 NM or more offshore - than using an archaic method. On a standalone pc or server it may override lookups, but that wasn't the point. :p

zone myspace.com
parent 64.125.138.181
www 64.125.138.181

Try that. Anytime someone goes to myspace it goes to another site. :laugh:
 
Jun 4, 2005
19,723
1
0
Originally posted by: sinucus
Originally posted by: LoKe
But seriously, if you wanted to use it properly, you could do something like...

64.233.187.99 www.google.com

So that you try to connect to the IP, rather than resolve the address. ~_~

There is a slight problem with that though. Google rotates through at least 4 different server banks so that you get fresher results. About once a week or so they change IP's, or so I've seen.

That may be true. But I was just using it as an example. =]