php - Encrypting URL and securing server -


i have app upload files server. files uploaded in same folder php script placed. files can viewed if 1 finds out url, easy hack , destroy data.

i have provide download address users downloading data uploaded if provide exact url, fair chance of loss of data.

i want know there way encrypt url or other way of securing folder data uploaded.

my url www.hostname.com/myfolder/file.txt. due such plain url, can't benefit url encoding in java.

i java programmer, have experience in php.

regards

a few remarks:

  1. use sessions , make users authenticate themselves.
  2. put files in upload/ folder, outside of web root.
  3. when files requested, check in upload/ folder if exist , serve them there.
  4. if file exists, deny upload.
  5. run secure (https) host.

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -