homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
Forum Library, Charter, Moderators: bill

Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10) Forum

    
Variables in hosts file
possible?
smells so good




msg:3197712
 12:00 am on Dec 23, 2006 (gmt 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

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?

 

jdMorgan




msg:3197723
 12:15 am on Dec 23, 2006 (gmt 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.

Jim

smells so good




msg:3197733
 1:00 am on Dec 23, 2006 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved