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