| :: |
| Author |
Message |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 219
|
Posted: Fri May 04, 2007 10:41 am Post subject: watermarking images using .htaccess |
|
|
I know that there are a few people that have been hotlinking to the images on my site and there are probably thousands more that have copied and used my images offline.
I once read that it is possible to watermark any images that are hotlinked and I think it was also possible to add the watermark if someone right clicked and saved the image, but I can't find a script anywhere that does this.
So I am looking to be able to add a watermark to images if they are hotlinked to or if they are saved by someone else.
Does anyone know if this would be possible?
Thanks in advance
chez |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14779
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 219
|
Posted: Fri May 04, 2007 6:48 pm Post subject: Re: watermarking images using .htaccess |
|
|
Thanks dcz,
I will check that out later.
The demo on that site is not currently working and so I'll check it out at a later date.
Thanks
chez |
|
|
| Back to top |
|
 |
schtroumpf
Joined: 05 May 2007 Posts: 1
|
Posted: Sat May 05, 2007 6:15 pm Post subject: Re: watermarking images using .htaccess |
|
|
The demo is now available. There was a small problem.
Check it on http://www.visohotlink.org
Arnaud |
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 219
|
Posted: Fri May 11, 2007 2:04 pm Post subject: Re: watermarking images using .htaccess |
|
|
I think that I will just add a bit of code to the .htaccess file so that it displays another image if someone hotlinks it, apart from a couple of sites where I have hotlinked pictures myself!
If someone knows tha lines of code that I need they would be much appreciated
Thanks
chez |
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri May 11, 2007 10:18 pm Post subject: Re: watermarking images using .htaccess |
|
|
You can try this... shot in the dark.. I'm a little fuzzy with this... this is from my Cpanel. So I dont know for sure if this may work for you. You would enable hotlinking but may need to let your own site view the images... so
RewriteCond %{HTTP_REFERER} !^http://your-site.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://your-site.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your-site.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your-site.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.your-site.com/you.gif [R,NC]
The image URL that will show on any other site that is hotlinking. |
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 219
|
Posted: Sat May 12, 2007 3:31 pm Post subject: Re: watermarking images using .htaccess |
|
|
Thanks for that
I will try it when I get the time!
Thanks
chez |
|
|
| Back to top |
|
 |
|
|