<LocationMatch "\.(ida|exe)$"> SetHandler perl-script PerlPostReadRequestHandler Apache::DONE </LocationMatch>
I tried adding the above code to my perl.conf file. and got this error on restart. Syntax error on line 31 of /etc/httpd/conf/conf/perl.conf: PerlPostReadRequestHandler not allowed here JM ----- Original Message ----- From: "Stas Bekman" <[EMAIL PROTECTED]> To: "David Young" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, October 28, 2001 11:45 PM Subject: Re: [OT] Nimda, etc (was: New mod_perl hacker wannabe . . .) > David Young wrote: > > > FWIW, Apache::CodeRed seemed like a good idea for a while, and then Nimbda > > showed up, and it was apparent no one was actually doing anything about the > > infected machines. I got sick of the notifications and the junk in my error > > log, so I resorted to this handler: > > > > <LocationMatch "\.(ida|exe)$"> > > SetHandler perl-script > > PerlHandler "sub { return OK; }" > > </LocationMatch> > > > And the most effective would be to use PerlPostReadRequestHandler > (or PerlInitHandler, which is an alias to PerlPostReadRequestHandler) > > <LocationMatch "\.(ida|exe)$"> > SetHandler perl-script > > PerlPostReadRequestHandler Apache::DONE > > </LocationMatch> > > since it returns at the earliest possible request phase. And you don't > need the sub {}, just Apache::* will do. > > Apache::DONE tells Apache to immediately jumps out of the request > loop, log the transaction and close the client connection. This is > one way to halt the transaction without generating an error status. > > _____________________________________________________________________ > Stas Bekman JAm_pH -- Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide http://perl.apache.org/guide > mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com > http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ >