PHP Classes

Classes of Florian Metzger

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Florian Metzger (1)  >  Mission progress status  >  Reputation  
Picture of Florian Metzger
Name: Florian Metzger <contact>
Classes: 1
Country: Germany Germany
Age: 45
All time rank: 144792 in Germany Germany
Week rank: 215 Up10 in Germany Germany Up
All time users: 2108
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Secure Media  
PHP Programming Innovation award nominee
October 2004
Number 4


Prize: One copy of the Maguma Workbench
Protect Flash files from hotlinking by other sites
The Apache mod_rewrite is often used to protect images and other types of media files from hotlinking from other sites, that make them appear in their pages although they are served from the original sites.

However, mod_rewrite can be used to protect the service of Flash files against hotlinking because these are embedded in pages using the <object> tag and in this case the browsers do not send a referer when requesting the Flash file from the origin server.

This class provides an alternative solution that works by generating a access key that is used to compose the URL used in the object tag but it is only valid only during a limited period of time.

The class takes as options the location of server directory where is the file to be protected, a password and the limit of time during which the access key is valid.

When the class validates the access key, it serves the real Flash file if the key is valid, or serves an error Flash file otherwise.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 70% 75% 65% 70% - - 56% 1874
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z