Security Bug. How to stop execution php in double extension

I just add this to httpd.conf:

<FilesMatch "\.(php|inc|php3|php4|phtml|php5)$">
Order allow,deny
Deny from all
</FilesMatch>

But PHP code in file somefile.php.txt has worked in browser.
 
Hello,

Thanks for pointing that out.
I've added the FilesMatch into the default httpd.conf for apache 1.3, as well as into the custombuild scripts with the dynamic config creations.

John
 
Back
Top