[Xitami] Code Red requests
John Poltorak
xitami@lists.xitami.org
Thu, 9 Aug 2001 11:38:51 +0100
On Tue, Aug 07, 2001 at 03:20:40PM +0100, Owen Rudge wrote:
> > BTW is there any that XITAMI can be configured to perform a specific
> > action depending on a request such "Get /default.ida..." ?
> >
> > Or how could create a page which would satisfy this GET request?
>
> You could create a PHP page called default.ida with something like:
>
> <?
>
> mail("webmaster@$HTTP_REMOTE_HOST", "Code Red Worm", "You have been infected
> by the Code Red worm! Please download the patch from www.microsoft.com.",
> "From: You <you@yourdomain.com>\n");
>
> // please note this script is untested
> ?>
>
> and add .ida = php.exe in the [Filters] section of defaults.cfg. Or you
> could create a Perl script and set the filter up to run Perl instead of PHP.
Thanks for this snippet.
I have put a DEFAULT.IDA in place now, but the variable $HTTP_REMOTE_HOST
does not get resolved. Does this variable provide the IP address of the
remote host? That's what I'm looking to include at this point.
> Owen Rudge
> http://www.owenrudge.co.uk/
> http://www.gamearchive.uk.tt/
--
John