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:
- use sessions , make users authenticate themselves.
- put files in
upload/
folder, outside of web root. - when files requested, check in
upload/
folder if exist , serve them there. - if file exists, deny upload.
- run secure (https) host.
Comments
Post a Comment