| Another way to bypass "on-the-fly image protection"
I enabled "on-the-fly image protection" yesterday and I have already had a user figure out out to bypass the security feature.
What they have pointed out to me is that by right clicking on the thumbnail they can get the URL for the photo which ends with for example:
photopost/data/500/thumbs/xxxxx.jpg
Then by changing the thunbs directory to medium they now have the medium size URL (without watermark). Example:
photopost/data/500/medium/xxxxx.jpg
Finally by removing the directory before the image file name they can view the photo or link it to anywhere on the Internet. Example:
photopost/data/500/xxxxx.jpg
So in all actually what is called Watermark protection really is not at all.
I am using an .htaccess file to protect the images from my gallery from being linked to any other websites other than mine. I had removed the .htaccess fiel after enabling the "on-the-fly image protection" but it looks like I will have to keep it in place to stop people from linking directly to the images fromother website.
Here is the .htaccess file entries I am using. Anyone here can modify it for use on their website. I placed the file in the root photopost directory and also the data directory for good measure.
___________________________________________________________
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xlforum.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?v2-forum.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?linson.us.*$ [NC]
RewriteRule ^.+\.(jpg|jpeg|png|gif|bmp)$ - [NC,F,L]
___________________________________________________________
BTW - I would love to be able to allow anyone to hotlink to my gallery photos but I want the watermark there. If anyone has any idea on how I can ge this to happen please let me know.
Last edited by bplinson; August 3rd, 2005 at 07:53 AM.
|