Open nikos-glikis opened 6 years ago
We should forbid them, not running them.
So something like
location ~\.(php|php3|php4|php5|php7|phtml|inc)$ {
deny all;
error_page 403 =404 / ;
}
In the nginx conf or do you have anything else in mind ?
Visiting a .php url results in downloading the file instead of running it.
How to reproduce:
This results in downloading the .php file and not running the code.
At least we should block downloading of .php and other relevant types. Ideally we should be able to run them.
Thanks