Re: Prevent direct access to files but allow download from site

2020-03-13 Thread MAXMAXarena
I managed to solve using cookies, but as you said, it is not secure. Although I have no experience, I managed to bypass the control. Maybe it's not the safest way like I did, in any case it is not recommended to proceed in this way. I have experience with auth_basic, but using the terminal to cre

Re: Prevent direct access to files but allow download from site

2020-03-12 Thread MAXMAXarena
Hi, thanks again for the reply. HOW I want to block I don't know, I am on this forum for this reason. I thought I was clear, I don't know how to explain it in different words. I want to prevent the user from downloading the file without being logged on my site. The user MUST BE ABLE to download t

Re: Prevent direct access to files but allow download from site

2020-03-12 Thread MAXMAXarena
j94305 Wrote: --- > 2. You use a session context: whenever a page validly serving a link > to a certain content is delivered, you set a cookie. Retrievals to > files require the cookie to be present. No cookie, no access. > > Cheers, > --j. Hi,

Re: Prevent direct access to files but allow download from site

2020-03-12 Thread MAXMAXarena
Thanks for all this information, I try to study and apply what you told me. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287297,287313#msg-287313 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Prevent direct access to files but allow download from site

2020-03-12 Thread MAXMAXarena
Hi, thank you for your help, but as I said, being an expert, I have difficulty understanding certain things. If you know how to solve my problem, a small example would help me. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287297,287312#msg-287312

Re: Prevent direct access to files but allow download from site

2020-03-11 Thread MAXMAXarena
Hello @Ralph Seichter, what do you mean by "mutually exclusive"? As for the tools I mentioned, it was just an example. Are you telling me I can't solve this problem? Hello @garic, thanks for this answer, it made me understand some things. But I don't think I understand everything you suggest to m

Prevent direct access to files but allow download from site

2020-03-11 Thread MAXMAXarena
Good evening, I would like to block direct access to files in a folder on my site, but allow downloading from the site. Specifically, I want to be able to download a file from the site's html tag: Download TXT But do not allow direct access and download, using the browser or other tools such a