Urgent hidden Path related issues

Source: Internet
Author: User
Urgent!!! Hidden path Issues
Let me give you an example http://wenku.baidu.com/view/a4cee123de80d4d8d15a4fba.html
1. This is an address in the Baidu library, I want to know how to get out of A4CEE123DE80D4D8D15A4FBA.
2. Review elements-Download button,
This code hides the download link, how is it done?
3. Check the source code of the Web page, found that the code in 2 is also hidden, what's the matter?
Please explain to us, thank you! URL HTML

Share to:


------Solution--------------------
1. Perhaps someone else is a file with such a filename. Perhaps the server sees A4CEE123DE80D4D8D15A4FBA after inverse obtains the real file name, the possibility is many
2. Download link does not need to point to the address of the downloaded file, because it can be used as a button, click on the trigger JS to download the operation.
3. If the corresponding location on the page is an empty element, the page loaded with JS dynamic add content to view the source code will be found to be empty

The above is probably not accurate, because Baidu specific use of what kind of technology I can not guarantee, I can only say, I said those can achieve similar effects. And presumably it was JS.
The study of Baidu's practice is not as good as the study of how to achieve what effect needs to be done quickly
------Solution--------------------
The simplest way: PHP generated download links with Base64Encode a filepath+time, download links similar to download.php?hash=xxxxxxxxxxxxxx, the user click, you get a hash after Ecode, If time is not expired, a file is given to someone in the header
$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 --------------------------------- ---------------------

Yard Farm--code farming code, grazing ideas Farm!

Rock Sugar Mesh

Reference:
Quote: Reference:

1. Perhaps someone else is a file with such a filename. Perhaps the server sees A4CEE123DE80D4D8D15A4FBA after inverse obtains the real file name, the possibility is many
2. Download link does not need to point to the address of the downloaded file, because it can be used as a button, click on the trigger JS to download the operation.
3. If the corresponding location on the page is an empty element, the page loaded with JS dynamic add content to view the source code will be found to be empty

The above is probably not accurate, because Baidu specific use of what kind of technology I can not guarantee, I can only say, I said those can achieve similar effects. And presumably it was JS.
The study of Baidu's practice is not as good as the study of how to achieve what effect needs to be done quickly


I have been studying for an afternoon, just don't know how to hide the address ah. I just want to make sure that nobody can find me. File name and address.

------Solution--------------------
Is through the JS jump
  • Related Article

    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.