Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-11, 08:26
BOD Member
 
Join Date: Nov 2010
Posts: 91
Default PHP Script Security Risk

Hi

Actually I am planning to create an application that stores stuff in the similar folder where the PHP script runs from. I think this will cause some security problems, but then I wan to know is there any way to do this if it's necessary.
Reply With Quote
  #2 (permalink)  
Old 02-01-11, 08:28
paullopez's Avatar
Administrator
 
Join Date: Nov 2010
Posts: 195
Default

I think this could be a security risk, however, you can increase security in this case and storing stuff in a public folder is not always an issue. What you need to do is, securely protect the upload script so only authorized user can upload it. You should also set the correct permissions on the directory and make sure only files types you are expecting are uploaded. One more thing you can do to reduce security issue. You can restrict IP address or .htaccess files to ensure someone is logged on before downloading a file. There are too many ways, but it really depends on what you are trying to do with your system. However, do this if you absolutely need to do this, IMHO creating sub-directory in the script location is the only writable area to your web users.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.