Forum Moderators: phranque

Message Too Old, No Replies

Hosts file creation

since I can't utilize wildcards how do I.....

         

Terabytes

8:22 pm on Oct 4, 2010 (gmt 0)

10+ Year Member



I'm attempting to roll out a host file company wide to disallow social access sites (and a few others)...

Do I need to include the non-www versions of the site along with the www versions in order to cover my bases?

127.0.0.1 www.website.com
127.0.0.1 website.com

and what about https accesses? am I simply able to cover, say yahoo mail, with:

127.0.0.1 mail.yahoo.com


thanks for your time!
Tera

Terabytes

8:59 pm on Oct 4, 2010 (gmt 0)

10+ Year Member



I just found a reference to using an alias in the hosts file (is this syntax correct?)

127.0.0.1 / www.website.com / website.com

(no slashes, I realize...)

thanks!