How can upload and download web applications ensure security and reliability and control permissions?

Source: Internet
Author: User
For example, the backend of a common web application is php. How to design a file upload/download class. 1. security: Malicious users may upload attack scripts. 2. reliability: the backend of PHP development. Generally, http is used for downloading. How to Improve the download reliability? 3. permission control: for download permissions of different users, the general web application backend is php. How to design a file upload/download class.
1. Security: Malicious users may upload attack scripts
2. Reliability: PHP backend development. Generally, http is used for downloading. How to Improve the download reliability?
3. Permission control: designed for different users to download Permissions

Reply content:

For example, the backend of a common web application is php. How to design a file upload/download class.
1. Security: Malicious users may upload attack scripts
2. Reliability: PHP backend development. Generally, http is used for downloading. How to Improve the download reliability?
3. Permission control: designed for different users to download Permissions

In terms of security, we must ensure that scripts cannot be executed in the upload directory. The reliability and permissions are used to determine whether the user has the permission to download the files. If yes, a decrypted encrypted link is generated, the link should include the downloaded file information and expiration time, and then jump to the download file, which can basically prevent leeching and permission problems.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.