Welcome to WebmasterWorld Guest from 54.162.12.134

Forum Moderators: bill

Message Too Old, No Replies

Variables in hosts file

possible?

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

5+ Year Member



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

127.0.0.1 .myspace.com
127.0.0.1 /myspace.com

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

Is there a variable that works for the hosts file?

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

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



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.

Jim

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

5+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month