Incorrect solution to disable script execution by .htaccess
I saw some people using this code in the “.htaccess” file to disable script execution:
This code is not secure, and can be bypassed by uploading a “testpage.PhP” file as an example.
This code has a case sensitive regular expression.
Note: <FilesMatch> is similar to <Files> with this problem
One solution:
Useful links: