You could always just match for <@DOMAIN> = {server ip} and then
redirect/error accordingly.
Or if you're on IIS I know that you can build each site to respond to
only hostheaders, and then build another site to respond anything at the
IP, this site would contain just an error page. This can probably be
done with other web serves as well, I just don't often work with them.
Robert
-----Original Message-----
From: Fogelson, Steve [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 1:06 PM
To: Witango User Group (E-mail)
Subject: Witango-Talk: requests for ip address vs. domain names
I had something interesting happen to me the last few days. I have an
app
for many domains with one set of tafs with the usual table lookup to
find
the site and set a user variable that points to custom variable for that
domain.
Well if someone tried to hit the site with an ip address instead of the
domain name, it would bypass dns and hit the web server. My TCF then
tries
the table lookup and doesn't find it. It then corrupts all my custom
variables. Probably some coding logic. So what I want to do is redirect
to a
"page not found" or something if the site is not found in the table
lookup.
I already have a 404.taf that redirects if the domain is valid and the
page
is missing.
I imagine it may be search engine spiders or hackers sequentially
checking
ip addresses, so I would like the response back to be a traditional
server
error if a page is not found.
Any suggestions?
Steve Fogelson
Internet Commerce Solutions
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf