Jump to content

Recommended Posts

Posted

Although some scripts require certain folders to have permissions set to 777 (for picture uploads, etc), this has always made me feel uneasy. I suppose that part of that uneasiness comes from an experience about a year and a half ago of finding some unwanted "gifts" deposited on my site, an incident that fortunately I caught before any damage was done.

 

Anyway, I read on another forum that a good way to secure writeable folders would be to disable php in that folder by including the following code in the .htaccess file for the folder:

 

>php_flag engine off 
<Files ~ "\.(php*|s?p?html|cgi|pl)$"> 
deny from all 
</Files>

 

That seems to make sense, but I wanted to ask for opinions on the advisability of doing this.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...