X-Accel-Redirectresponse of NGINX has read several articles online, all of which are used to control file download permissions. The principle is to verify the permission when accessing download. php. if the permission is passed, the header ("X-Accel-Redirect: & nbsp; target file "). However, I have X-Accel-Redirect response for NGINX.
I read several articles on the Internet, that is, they can be used to control file download permissions.
The principle is to verify the permission when accessing download. php. if the permission is passed, the header ("X-Accel-Redirect: target file") is used ").
However, if I know the actual file name and storage path of the target file and then access it directly, isn't it bypassing X-Accel-Redirect?
For example:
Assuming the target file is actually stored in the http://www.1.com/download/123.xls
And there is a download link http://www.1.com/download.php on the website page? File = xxxx
You can use this link to implement permission control, but what if I enter http://www.1.com/download/123.xlsdirectly? Didn't I bypass permission control? Share: More
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.