Urgent !!! Hidden Path Problems

Source: Internet
Author: User
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

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.