Files and Folders: Protect picture
MARY Matthieu (contact me)
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
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Sufficient (64.3%)
| Sufficient (60.7%)
| Sufficient (65.0%)
| Sufficient (71.4%)
| -
| -
| Not sure (51.9%)
| 1147 |
Click here for detailed information about this class on phpclasses.org