js1 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Is it possible from a cgi script to return an http reponse status code of 200 instead of a 404 or 500? I want to do this using Apache's ErrorDocument directive e.g. ErrorDocument 500 /cgi-bin/status.cgi
so that for 500's I can return a 200. It's just to confuse any vulnerability scanners.

Thanks,

js.

Replies are listed 'Best First'.
Re: status code
by spadacciniweb (Curate) on Sep 15, 2006 at 15:16 UTC
    Yes, here there is an example.