Could the supervisor directly download files from the server? what should I do if I want someone else to download the files like this? I have no permission to modify the apache file content on the server. What should I do. How can they prevent people from directly accessing files on the server?
For example, if I have a folder named DLand a cp.rar under the Directory of the server and my domain name is www.fox.com, enter "Taobao" in the address bar of the browser. What should I do.
In fact, I want to achieve this effect. after the customer pays, I can ask him to download the file. it cannot be said that he knows that the file is downloaded directly from the path of my server.
------ Solution --------------------
. Htaccess
------ Solution --------------------
Put the file outside the root directory of the document, and use php to retrieve and send it back.
------ Solution --------------------
Discussion
. Htaccess
------ Solution --------------------
Discussion
. Htaccess
------ Solution --------------------
You can also use the define page to reference the defined define file to determine whether the define exists.
------ Solution --------------------
Discussion
You can also use the define page to reference the defined define file to determine whether the define exists.
------ Solution --------------------
Discussion
Reference:
You can also use the define page to reference the defined define file to determine whether the define exists.
Anti-hop walls, but some files are static files that are directly downloaded, and cannot be used here.
------ Solution --------------------
Although I don't need godaddy, I'm 99.9999% sure they support it.
If you don't ask Niu again, he seems to be using a godaddy server.
Discussion
Reference:
. Htaccess
The godaddy I use does not seem to allow users to change. htaccess.
------ Solution --------------------
If all requests are rejected,
Simple deny from all
If you need to set complex permissions based on ip/user and other permissions, you need to go through the manual...
Discussion
Reference:
. Htaccess
How can this problem be achieved?
------ Solution --------------------
If the file is not very large, you can use php to determine and directly output the file ..
------ Solution --------------------
. Htaccess + 1