How do I get IIS to show a webpage when the domain is called but not
when just the IP is called.

I would settle for just having the IP show a different website;like a
default page.

Re: Bind to domain but not IP. by Tom

Tom
Tue Nov 01 10:00:48 CST 2005

<dcaban@gmail.com> wrote in message
news:1130860153.582622.260530@o13g2000cwo.googlegroups.com...
> How do I get IIS to show a webpage when the domain is called but not
> when just the IP is called.
>
> I would settle for just having the IP show a different website;like a
> default page.

Off the top of my head ... create two web sites, one with a host header for
the domain and the other with a different host header.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS



Re: Bind to domain but not IP. by Ratatooie

Ratatooie
Tue Nov 01 10:52:07 CST 2005


"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:OARqw1v3FHA.3900@TK2MSFTNGP12.phx.gbl...
> <dcaban@gmail.com> wrote in message
> news:1130860153.582622.260530@o13g2000cwo.googlegroups.com...
>> How do I get IIS to show a webpage when the domain is called but not
>> when just the IP is called.
>>
>> I would settle for just having the IP show a different website;like a
>> default page.
>
> Off the top of my head ... create two web sites, one with a host header
> for the domain and the other with a different host header.
>
> --
> Tom Kaminski IIS MVP
> http://www.microsoft.com/windowsserver2003/community/centers/iis/
> http://mvp.support.microsoft.com/
> http://www.iistoolshed.com/ - tools, scripts, and utilities for running
> IIS
>

Yeah, as Tom said...

Like this;

[Your web site] (on the "Web Site" tab) Bind the Specific IP. In the
Advanced area, list each hostname (www. and www. less) port, and IP.

[The default web site] Bind the specific IP. In the advanced area make sure
it says "All Unasigned" or has a blank host header but a list of all the IPs
on the network card. (Which could be just one, but could be a bunch.) Then,
just make a little page in the default site saying "sorry, no site here" or
something.

The result is a request for www.yoursite.com on IP 192.168.1.2 gets the
site. A request for any other hostname on 192.168.1.2 or just for
"192.168.1.2" gets the default site.

Note, if you are using SSL then you cannot do this as IIS will require that
the site have a unique IP and no other sites on the IP (including the
default). It will respond to the IP address request anyway.

This is useful for preventing automatic bots and worms from crawling your
sites looking for exploits (the default web takes the hits, but since there
shouldn't be much in it and your customers didn't add security-hole ridden
stuff there it works out better. Plus, you don't have to answer questions
about "is this a hack!?!?!" when users view logs. A side benefit,
competitors can't mine your customer list by crawling through your IP
address block looking for sites.