Member
Member
eflat   2008-07-23, 21:26
#1

Is there a way to prevent a viewer from right-clicking and choosing to save an image?

Member
Member
sbillard   2008-07-23, 22:53
#2

Not that I know of. But you can watermark your images and disable the full image view.

Member
Member
krainbolt   2008-07-23, 23:42
#3

Add this code to your `` tag:

oncontextmenu="return false;"

Member
Member
krainbolt   2008-07-24, 00:59
#4

I should probably mention it would be trivial for a knowledgeable visitor to bypass this by disabling JavaScript, however you'll likely thwart the majority of visitors. There are more complex methods of disabling the right click which may prevent a greater number visitors from stealing images, but in the end you'll find it is impossible to prevent every visitor from doing so. The most you can do is slow down the best and make sure the images that are taken are watermarked.

Administrator
Administrator
acrylian   2008-07-24, 09:10
#5

And also disableing right click even with Javascript turned on does it not make impossible. First when you view the image it's has already been download to your browser cache and second there are other methods to do that if someone really wants. The only secure things is not to post images at all...:-)

And of course never post images in high resolutions that are professional printable!

Member
Member
eflat   2008-07-25, 03:39
#6

Yep, in the past I've gotten around the very thing I'm asking about, but I'd still love it for my own pics. I think the attribute on body tag is simplest and will go that route.

I'd still recommend adding this option for the administrator and also making them aware of the caveats stated above. Thanks!

Member
Member
impete82   2008-07-25, 04:14
#7

if someone really wants an image, they'll get it. even taking away right clicking, adding watermarks, i can get just about any image if i really wanted.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.