On Tuesday 01 August 2006 16:23, Reif Peter wrote:
> How do I configure my server, so that it does not
>
> I have ssi enabled on my web server. I also have a content filter in
> mod_perl:
>
>       PerlOutputFilterHandler Apache::MyFilter
>
> How do I configure the server that it does not send requests made by
> <!--#include virtual directives through my filter?
> Or how can I check in my filter, that the requests comes from an
> include.

UNTESTED: You can in your filter check for $r->main to see if it is a 
subrequest. This returns the request that has issued the subrequest. Then you 
can inspect its $r->output_filters list and look for $filter->frec->name eq 
'INCLUDES'. This gives not 100% guarantee but it's very likely that the 
subrequest was initiated by the includes filter.

To be sure you can write a module that scans the C-level calling stack for 
something that is inside mod_includes, ;-)

Torsten

Attachment: pgpfv7thjjlMu.pgp
Description: PGP signature

Reply via email to