Make a resource download network, download resources are inaccessible, technical solutions

Source: Internet
Author: User
As a resource download network, the downloaded resources cannot be accessed. The most recent technical solution is the resource download network, which uploads files to the specified folder without encrypted files, however, during the download process, you can directly access it through the address. the htaccess file prevents direct access to the download, but it cannot be downloaded when the program reads it. I copied the files from the original downloaded Directory through the program, but the efficiency is very low, which leads to repeated copies and so on. Is there any good solution, can I use cache to cache downloaded files? If the line is used, how to write the code. Sorry, the younger brother is not technically enough.


Reply to discussion (solution)

It seems that you only need to release. htaccess in the resource directory.
One sentence
Deny from all

It seems that you only need to release. htaccess in the resource directory.
One sentence
Deny from all



I have used this, but cannot download it. my current goal is to download it through a program. The htaccess file program cannot be downloaded.

Put the uploaded file to the upper level of the website directory and read and write it through a program.


It seems that you only need to release. htaccess in the resource directory.
One sentence
Deny from all



I have used this, but cannot download it. my current goal is to download it through a program. The htaccess file program cannot be downloaded.


No, how can I?



It seems that you only need to release. htaccess in the resource directory.
One sentence
Deny from all



I have used this, but cannot download it. my current goal is to download it through a program. The htaccess file program cannot be downloaded.


No, how can I?


The downloaded code has a header or something .. Just use that. it seems that it is not very definite. the actual result prevails.

Http://www.cnblogs.com/c840136/articles/PHP_header_download.html
The file operation reads the local file on the server and has nothing to do with the IP address. it seems that it is not very definite.

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.