Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Hosts file question

15 Dec 2010   #1

 
 
Hosts file question

This is something I've always wondered about manipulating the hosts file.

Can wildcards be used?

For example:

Code:
127.0.0.1       *.google.com
or
Code:
127.0.0.1       *.google.*
Or is each domain or subdomain in need of full qualification?

My System SpecsSystem Spec
.

15 Dec 2010   #2

Win 8 Release candidate 8400
 
 

Quote   Quote: Originally Posted by Norwood View Post
This is something I've always wondered about manipulating the hosts file.

Can wildcards be used?

For example:

Code:
127.0.0.1       *.google.com
or
Code:
127.0.0.1       *.google.*
Or is each domain or subdomain in need of full qualification?

First one *.google.com un-necessary. "google.com" encompases the entire domain.

Second one, nope cant do (I dont think) "google.*. I am unsure try it.


Then there is the google.com.* (for google.com.au, etc)


Ken J
My System SpecsSystem Spec
15 Dec 2010   #3

 
 

I understand that in the case of google it encompasses the entire domain. I was using "google" as an example.
My System SpecsSystem Spec
.


15 Dec 2010   #4

Windows 8 Core X64
 
 

I think what Ken meant was

google.com == *.google.com
orbitz.com == *.orbitz.com

as far as functionality goes, so there is no need for the *.
My System SpecsSystem Spec
Reply

 Hosts file question




Thread Tools



Similar help and support threads for2: Hosts file question
Thread Forum
editing hosts file General Discussion
Hosts File General Discussion
Solved Hosts file-S?? System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut Tutorials
HOSTS file Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:05 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33