Within a popup, I have created a link to a file which I would like my users to download. My site also has some crude authentication mechanism but is not a 'secure' site.
Now we find out anybody can just navigate to the URL directly and gain access to the file.
How can I protect the URL from being accessed by just anybody. The URL represents a file we want the user to download.