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/