.htaccess and chmod 777
-
I use a plugin Image Manager where you need to set the upload/images to chmod 777, to get it to work!
I don’t like that, I’ve searched around for a solution to make it a bit safer. What I want is to use a .htaccess file in images folder, and to utilize that only jpg,jpeg,gif and png could be used or disable php,sgi,perl in that folder. The person who wrote the plugin states that you can make that with following lines in a htaccess file
<Files ^(*.jpeg|*.jpg|*.png|*.gif)>
order deny allow
deny from all
</Files>I tried that but that don’t work at all, could anyone give me the magic lines that either allow only images or disallow scriptfiles.
- The topic ‘.htaccess and chmod 777’ is closed to new replies.