Use PHP programs to protect your flash files

Source: Internet
Author: User
The protection in this article is to prevent the user from saving the swf file locally. In fact, this method has been used long ago. The main protection measure is to read the $ _ SERVER array in the php background. if the ActiveX control in IE is used to load the video, there will be a $ _ SERVER [HTTP_X_FLASH_VERSION] parameter, if you use other download software to download the file, this article does not protect you from saving the swf file locally. In fact, this method has been used long ago. The main protection measure is to read the $ _ SERVER array in the php background. if the ActiveX control in IE is used to load the video, there will be a $ _ SERVER ["HTTP_X_FLASH_VERSION"] parameter, if you use other download software for download, this parameter will not be available. it is a wonder that Firefox ActiveX does not have this parameter.

In this way, you can use this parameter to determine whether the user's access method is valid. If $ _ SERVER ["HTTP_X_FLASH_VERSION"] is not detected, you can switch another swf in the background to replace the original one.
The other is the cache problem. after swf is displayed, it will be displayed in the user's cache. this problem can also be solved by setting the header file of the webpage. PHP code:

It should be noted that the capabilities of such protection technologies are limited, and there are still some methods to crack them.

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.