Login   Register  
PHP Classes
elePHPant
Icontem

Protect picture: Protect the path of yours pictures

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of MARY Matthieu
Name: MARY Matthieu <contact>
Classes: 19 packages by
Country: France, Metropolitan France, Metropolitan
Age: 35
All time rank: 241 in France, Metropolitan France, Metropolitan
Week rank: 254 Down1 in France, Metropolitan France, Metropolitan Equal


  Detailed description   Download Download .zip .tar.gz  
This class is meant to protect the path of your site pictures in order to prevent that somebody eventually using robot scripts steals the images by accessing the pictures directly.

The class changes the URL of the images used in HTML <input type="IMAGE"> or <IMG> tags using a new URL through which real browsers can retrieve the picture files.

The class requires php 4.0 or later with session support enabled.

To use this class put the protect_picture.php script in the same directory of the script that references thes pictures to be protected. Then, at the beginning of that, just call:

$pprotect = new protect_picture(session_id());

and at the end of your script call

$pprotect->protect();

This class supports all the session_save_handler method : file in most cases with th $_SESSION array or in the others way a cache file

  Classes of MARY Matthieu  >  Protect picture  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Protect picture
Base name: class_protect_pictur
Description: Protect the path of yours pictures
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 4084 users
All time rank: 675
Week users: 0 users
Week rank: 1420 Equal
 
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

  Groups  
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
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


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (64%) Sufficient (60%) Sufficient (65%) Sufficient (71%) - - Not sure (51%) 1488
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
documentation
functions documentation
forum
Share yours problems, questions, and use on the official forum for this class

  Files folder image Files  
File Role Description
Accessible without login Plain text file CHANGELOG Doc. LOG changes
Plain text file class_cache.php Class the caches functions
Plain text file class_protect_picture.php Class class file
Accessible without login Plain text file class_protect_picture_example.php Example examples: change the SRC of your pictures to test
Accessible without login Plain text file LICENCE Lic. copy of GPL licence
Accessible without login Plain text file protect_picture.php Appl. script which read files
Accessible without login Plain text file protect_picture_cache.php Appl. this file read the picture in the case you doesn't use files in a sessions_save_handlers way

Download Download all files: class_protect_pictur.tar.gz class_protect_pictur.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.