Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use HTTP headers to ignore certain domain names?

Status
Not open for further replies.

Usalabs1

Technical User
Jun 29, 2003
131
US
I have 1 primary domain name, which is pointing to my IIS 5.0 webserver, I also have about 8 sub-domains, and 2 dynamic hosts, the primary domain name is using dynamic host #1 to direct http requests to my webserver, the other dynamic host is also pointing to my webserver, but, I use the 2nd dynamic host address for an ftp server, the question is, how do I get my webserver to only allow http request from my 1st dynamic host?

Example.

primary domain name=mydomain.com
subdomain1.2.3......=[subdomain1.2.3......].mydomain.com
dynamic1 host name=myhost1.dnshost.org
dynamic2 host name=myhost2.dnshost.org

mydomain.com points to dynamic host1, which in-turn points to my wan ip, dynamic host2 also points to my wan ip.

So that means even though I'm using dynamic host2 for an ftp server, the host name of dynamic host2 can be entered into IE and still get my webserver home page, what I'm looking for, is if the address of dynamic host2 is entered into ie there would be an error 404, but if the address of dynamic host1 is entered it would reach my webserver.

To put is simply, I would like my webserver to deny access from dynamic host2, but allow access from dynamic host1.

But dynamic host2 still be used as an address for an ftp server.

Is this possible, or am I confusing someone?
 
If I've got this right, you have one site, 3 host headers (plus subs).

remove the host header of the site you want to die.





Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
I have no headers on the IIS webserver, I want to use headers to block requests from one of the dynamic hosts.
 
Then put host headers in for the site names you DO want to respond, and omit the one that you don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top