I allow users to upload .jpg, .pdf.doc.xls files to their web server under their own account, then they can later click on the file name to view the document in a browser or in case. doc.xls, they download it at the prompt of the default browser.
I want to hide the / obfuscate url so that they don’t know the exact path to access the file, hoping to protect the files from other accounts / users.
I am using php, apache
Here's an example of a path:
http://dev.site.com/administrator/account_files/1/documents/property_docs/1_68_1295980609myfile.pdf
How can I hide the url for example:
http:
The main goal is to remove the link to "administrator / account_files / ...."
Is there something with apache mod_rewrite that I could do? I read a few other posts where people used php readfile () and used a different page, but I am wondering if I will have performance problems with this.
Thanks for your advice.
source
share