Could anyone help with coding to stop users copying/downloading of graphics from a web page. Eternally grateful for code or ADVICE
Printable View
Could anyone help with coding to stop users copying/downloading of graphics from a web page. Eternally grateful for code or ADVICE
The only way i can think of doing this is to disable the right-click on the users mouse. It is not foolproof though; If you were to doing it using a script, a user could use a browser that is not compatible wth scripts and therefore, the right button would be enabled. Anyway, Here's a link to a javascript script that disables right click
http://www.billybear4kids.com/clipart/riteclic.htm
Good luck
BIOSTALL
If you do not want people copying/downloading your images, don't put them on the website. If someone wants them, there's always a way to get them.
No fool-proof way of doing it. Some sites put a watermark image over images they don't want copied - you need to do this server-side though.
DJ
That's actually done in the paint/photo program not in code.
Psyrus - it can be done in a paint/photo program but if you can't be bothered to do it every time (especially if you have a lot of images) then adding a watermark at runtime very helpful. Take a look -> http://www.thecodeproject.com/aspnet...ageHandler.asp
DJ
Interesting, that would prove to be very useful once set up, but it seems a lot of extra work to go through when it's done easier in a paint program. Good article though. :thumb:
Yeah it only makes sense if you are uploading a lot of images i.e. when adding a watermark yourself becomes a pain in the arse.
I have a site that has an administration area to upload images and other details rather than using FTP - it adds a watermark to the image when it is uploaded rather than at runtime (when the image is requested) which simplifies matters a tad.
DJ