Welcome to WebmasterWorld Guest from

Forum Moderators: bill

Message Too Old, No Replies

Variables in hosts file


12:00 am on Dec 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 1, 2006
votes: 0

The crew doesn't understand no, so I'm blocking known favorite sites in my hosts file. One of those is myspace, which has dozens of subdomains. For now I've entered those subdirectories that I know will prevent access, but I'm wondering if there is a magic bullet for this scenario. From my searches around the web I think not..

In addition to a few known subdomains I've added the following 2 lines .myspace.com /myspace.com

What I would like to do is something like this *.myspace.com

Is there a variable that works for the hosts file?

12:15 am on Dec 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0

Nope, hosts files are dirt-simple text files, and handled as such by almost all 'net-capable operating systems.

If it's not too late; fire off a quick note to Santa, and ask him for a firewall or a firewall/router adequate for your needs. Many in the $75.00-and-up range will block domains and wildcard subdomains, although you may have to dig into the on-line user's manuals to see if their implementation is adequate. The more-expensive 'corporate' firewalls will certainly solve your problem, and filter e-mail to boot.


1:00 am on Dec 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 1, 2006
votes: 0

DOH! ( I'm getting a headache ;) )

I have a really good firewall that I can use. In fact, it works so good that I usually don't even think about it. It will be easier than loading all those locations in my hosts. Thanks.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members