On 10/6/06, tedd <tedd@xxxxxxxxxxxx> 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.php
You 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php