Re: image protection
| From: | Eric Butera | Date: | Fri, 06 Oct 2006 17:59:48 +0000 |
| Subject: | Re: image protection | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242770@lists.php.net to get a copy of this message | ||
On 10/6/06, tedd <tedd@sperling.com> wrote:
Hi gang: What would be the "best" way to protect images in a directory from being harvested? I know that when an image is shown to the user, while there are some javascript tricks to deter the user, there is no real way to stop the user from capturing the image, for they already have it. But, is there a way to protect a directory such that an application such as "SightSucker" (nice program btw), can't retrieve it's contents, while your php script can? Thanks. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpYou could try http://alistapart.com/articles/hotlinking. Another way that you could do it is setting a session variable on the page that you know your images are going to be viewed from. Then on the script that your images are linked in through (via page.php?image=x) check for that session variable. At least with this second method it forces the robot to accept a session cookie.