PHP Classes
Icontem

Class: Secure Media


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Florian Metzger  >  Secure Media  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Secure Media Support forum
Base name: securemedia
Description: Protect Flash files from hotlinking by other sites
Related top rated classes: , , ,
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 1755 users
All time rank: 1550
Week users: 6 users
Week rank: 1278
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Florian Metzger
Name: Florian Metzger <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Germany Germany - PHP jobs in Germany
Home page: http://www.neodelight.com/
Age: 31
All time rank: 1076
Week rank: 1026

Innovation Award

PHP Programming Innovation award nominee
October 2004
Number 4
The unauthorized use of content of one site in another site is an activity that concerns many site owners.

Hotlinking is one type of unauthorized content use that consists in making pages, images and animations appear in one site despite they are being served by the site that really is publishing that type of content.

Hotlinking is problematic not only because it lets unauthorized sites obtain illicit merit for showing unauthorized content, but also because it may cause financial losses by making the owner site pay for the bandwidth to serve content for other sites.

There are solutions to prevent simple hotlinking by rejecting accesses made from unauthorized referring sites. However, these solutions do not work well for blocking hotlinking of Flash animation objects.

This class provides an alternative solution that works well enough for Flash animations embedded in Web pages dynamically generated with PHP.

Manuel Lemos

Groups

Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Security Security protection and attack detection View top rated classes
Group folder image Flash Generate and interact with Flash animations View top rated classes

Detailed description

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.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Good (81.3%)
Sufficient (68.8%)
Sufficient (75.0%)
-
-
Sufficient (60.0%)
706
Month:
Not yet rated by the users

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file CSecureMedia.php Class the main class
Plain text file README Doc. documentation
Plain text file securemedia.php Example sample script
Download all files: securemedia.tar.gz securemedia.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products