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.