I’ve made a protected page containing a list of PDFs, reachable through a simple login page. However I was wondering how secure this really is, since if you enter the full path to the PDF on the server - e.g. mysite.com/assets/files/topsecret.pdf - I do not think it’s very protected, is it?
Perhaps it would be a good idea to put the PDF in a folder that’s hard to guess, e.g. mysite.com/assets/d4531dadf/topsecret.pdf. Or can the webserver still be scanned for existing folders and documents?
I’m wondering how one would go about protecting such documents.
There is also this one:
http://modx.scottydelicious.com/blog/2008/06/15/filedownloadpe
http://modxcms.com/forums/index.php/topic,26595.80.html
// haven’t used it myself.
If it’s very sensitive information maybe use .htpasswd protection
instead.
-
☆ A M B ☆
- 24,524 Posts
I would add that if it’s all that sensitive, what’s it doing on a web server in the first place?
HTTP and FTP was designed to facilitate communication and the transmission of information in various forms; it was never designed to be secure. That’s what encrypted VPNs, SFTP, SSH or dedicated private lines are for.