prevent run php file in 777 folder

parsibox

Verified User
Joined
Apr 18, 2013
Messages
50
hi
how can i prevent run php file on 777 permison folder?
i want do it for all 777 folders and all users
 
1. Do not put it there
2. Add to .htaccess something like:
Code:
<Files yourfile.php>
Order Allow, Deny
Deny from all
</Files>
 
i do not want add one by one it file to that folders!
i want add some thing to my apache config or php-fpm config for all user
i have 50 user!
wordpress site have 777 permison on uploads folder and some hacker upload shell to that folders and run it!
i want prevent theme to run php file on 777 folder
 
i know but Customers don't care about notifications
please help to prevent it with server config!
 
Back
Top