| Recommend this page to a friend! |
| Classes of MARY Matthieu | > | Protect picture | > | Download .tar.gz .zip | > | > | > | |||||
|
| |||||||||||||||||||||||||||||||||||||||||||
| Detailed description | ||
| 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 |
| Groups | ||
| Graphics | Colors, images, charts and picture formats | View top rated classes | |
| Files and Folders | Listing, accessing and manipulating files and folders | View top rated classes | |
| User Management | User records, authentication and session handling | View top rated classes | |
| Security | Security protection and attack detection | View top rated classes |
| Freshmeat project | Applications | Related links | ||||||||
No application links were specified for this class.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||