Quote:
|
Even with hiding the URI, being able to download something that could contain sensitive information without authenticating seems to be asking for trouble.
|
That's the purpose of using sessions and/or cookies.
If the session/cookies carries the correct information they get the file, otherwise they get told to "go away".
The page that does the authentication also does the download by setting the contenttype and requesting the file, that way ALL files are accessed via /download/?fileref=whatever. The real location of the file is never exposed, all the file refs/URIs are in a database and if needs be can be changed at a moments notice. You can track the downloads to each registered user and the files can be located on any server, anywhere. Which may or may not be the same server as the download page is.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|