Urgent !!! Hide path question url html
Example: http://wenku.baidu.com/view/a4cee123de80d4d8d15a4fba.html
1. this is an address in Baidu Library. I want to know how a4cee123de80d4d8d15a4fba came out.
2. Review elements-download button,
How does this code hide the download link?
3. check the source code of the web page and find that the code in 2 is also hidden. what is going on?
Thank you for your explanation!
Reply to discussion (solution)
1. maybe someone has stored a file with such a file name. maybe the server can see a4cee123de80d4d8d15a4fba and perform reverse operations to obtain the actual file name. There are many possibilities.
2. the download link does not have to point to the address of the downloaded file, because it can be used as a button. when you click it, js is triggered to perform the download operation.
3. if the corresponding position on the webpage is an empty element, when loading the page, you can use js to dynamically add the content and view the source code.
The above may not be accurate, because I cannot guarantee the specific technologies used by Baidu. I can only say that the technologies I mentioned can achieve similar results. and it is estimated that it is implemented using js.
The study of Baidu's practice is not as good as the research on what effects should be achieved, but how should we do quick bi?
1. maybe someone has stored a file with such a file name. maybe the server can see a4cee123de80d4d8d15a4fba and perform reverse operations to obtain the actual file name. There are many possibilities.
2. the download link does not have to point to the address of the downloaded file, because it can be used as a button. when you click it, js is triggered to perform the download operation.
3. if the corresponding position on the webpage is an empty element, when loading the page, you can use js to dynamically add the content and view the source code.
The above may not be accurate, because I cannot guarantee the specific technologies used by Baidu. I can only say that the technologies I mentioned can achieve similar results. and it is estimated that it is implemented using js.
The study of Baidu's practice is not as good as the research on what effects should be achieved, but how should we do quick bi?
I 've been studying it for one afternoon. I just don't know how to hide the address. I just want others to find the file name and address.
The simplest method is to use base64encode for a filepath + time when php generates a download link. the download link is similar to download. php? Hash = xxxxxxxxxxxxxx
$file = "/tmp/dummy.tar.gz"; header("Content-type: application/octet-stream"); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); header("Content-Length: ". filesize($file)); readfile($file);
------------------------------------------------------ AutoCSDN signature file ------------------------------------------------------
Code Farm ?? A farm where coders sow codes and graze ideas!
1. maybe someone has stored a file with such a file name. maybe the server can see a4cee123de80d4d8d15a4fba and perform reverse operations to obtain the actual file name. There are many possibilities.
2. the download link does not have to point to the address of the downloaded file, because it can be used as a button. when you click it, js is triggered to perform the download operation.
3. if the corresponding position on the webpage is an empty element, when loading the page, you can use js to dynamically add the content and view the source code.
The above may not be accurate, because I cannot guarantee the specific technologies used by Baidu. I can only say that the technologies I mentioned can achieve similar results. and it is estimated that it is implemented using js.
The study of Baidu's practice is not as good as the research on what effects should be achieved, but how should we do quick bi?
I 've been studying it for one afternoon. I just don't know how to hide the address. I just want others to find the file name and address.
Jump through js