Video website block Thunder hijacking download

Source: Internet
Author: User

Recently in the development of a video site, if the Thunderbolt, open video playback also thunder will hijack the video source, and then play download box, resulting in the normal play ~ ~ Very disgusting, very rogue

The simplest solution: the client, turn off the Thunderbolt, or set to cancel listening to the browser, or to cancel listening to all the contents of the domain name

Of course, as a developer, it is certainly not possible for every user to do so, but the experience is poor ~ ~

See if you can start from their own to stop the rogue behavior of Thunder;

How does thunder Monitor to the video and intercept;

Thunder through the monitoring request Header; content-type:application/octet-stream general file download is such a request type; Thunder judgment for file download to intercept;

Therefore, to prevent the interception of thunder, it is necessary to modify content-type;

Compare the following big video sites such as music, found are content-type:video/mp4, so try to modify content-type:video/mp4 ~ ~ found really effective;

Modify the Nginx/conf/mime.types file under Linux to add the following line;

Video/mp4        mp4

Video website block Thunder hijacking download

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.