Use PHP to protect your flash files

Source: Internet
Author: User
The protection in this article is to prevent the user from retaining the swf file locally. In fact, this method has been applied for a long time ago. An important 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 it is downloaded using other software, this parameter will not exist, the protection in this article is to prevent the user from retaining the swf file to the local device. In fact, this method has been applied for a long time ago. An important 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 it is downloaded using other software, this parameter will not exist, the question is that ActiveX in Firefox does not have this parameter.

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

To be famous, this protection technique is limited, and there are still some methods to crack it.

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.