Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Stop people copying photos off site

Go to End

11 Posts   3264 Views


28 August 2008 at 12:16pm Community Member, 19 Posts


I have a customer who is keen to stop people being able to copy/download photos from his site.

I have been unable to find anything that refers to this at this stage.

Any suggestions on how we might be able to do this.



28 August 2008 at 1:31pm (Last edited: 28 August 2008 1:35pm), Community Member, 135 Posts


Missread, Sorry.

Its impossible to "STOP" copying/downloading images from a website, but there are many things you can do to make it harder.

Disable right click (javascript)
Use CSS and place the images as "background-url" (CSS)
Password protect, or place a blank index.html page in the images folder

Hope these helped a little.

(this will stop people from using the images on THEIR website.)

You need to have hotlink protection.

Here is a good result I found from google:


28 August 2008 at 3:51pm Community Member, 19 Posts


You have pretty much confirmed what I already was sure was the case. I have seen a few references to placing a watermark on images displayed.

Is there a way of doing this "automatically" or is it better to doctor all the images placing a watermark on each image prior to uploading?



28 August 2008 at 4:47pm Community Member, 135 Posts

If your not familiar with a scripting language, I would suggest doing this manually (or batch it), before upload.


28 August 2008 at 5:37pm Community Member, 19 Posts


Came to that conclusion myself. I have decided to watermark each of the pics manually with photoshop. Sigh

bit of a job but probably the best solution for a difficult problem.

Cheers Neil


28 August 2008 at 7:16pm Forum Moderator, 5511 Posts

If you have PHP GD2 I think theres quite a few methods you could use to make it a bit more dynamic for instance -


28 August 2008 at 7:48pm Community Member, 787 Posts

Regarding watermarking, I've got that code done , but I can't figure out how to go about integrating it with Silverstripe.

Willr ; would you mind giving me some pointers on how to "hook" this in ?

See for my question.


29 August 2008 at 11:54am Community Member, 19 Posts

Thanks Willr

Dumb question, but what is GD?

I have had a look at the link you listed but I still don't know whether I have GD as part of Silverstripe or whether it is an extra download and install.

Cna you please let me know what GD stands for

Many thanks

Go to Top