Protect chmod 777 folders
Sometimes linux hosting users need to change the permissions on a folder to use upload scripts or other applications that need this permissions.
With chmod 777 ther folder gain the rights: writing / execute and read for everyone. Hackers like this folders.
How can you protect that folders?
You can turn PHP off on that folder and disable php / html / perl files.
How can it be done?
Create this .htaccess in the folder:
php_flag engine offThats it, you just increased the security level on this folders.
<Files ~ "\.(php*|s?p?html|cgi|pl)$">
deny from all
</Files>
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment