mod_layout and scripts producing images

Aaz <[email protected]> Sun, 8 Feb 2004 14:28:10 +0200
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hello,

 I have malicious users on the server who are using php scripts to
 creade/modify images, so we have PHP scripts that produces
 Content-type: image/jpg or image/png. Is it possible to tell
 mod_layout not to insert headers/footers if content-type describes
 image?

 In the faq i've not found any directives that could modify execution
 of mod_layout not by  handlers but by content-type headers.

 At my sight, only 2 directives could be thought to be used, but really don't:
  
 LayoutIgnoreURI - this directive cannot be used, because scripts can
 have (and they do! :-( ) different filenames.

 LayoutIgnoreTag - cannot be used, because image still gets
 corrupted, even without headers/footers.


 What have i missed?

  

-- 
Best regards,
 Aaz                          mailto:[email protected]