2012-03-28, 15:54:45
Zegnåt Wrote:vasitellapahki Wrote:How do you disable right click from Fancybox (or any of the gallery types, for that matter)? I’d like to restrict image downloading but don’t really want to watermark, I know Imagizer does that…Note that any download blocking techniques are like obfuscation techniques. They are a pain to the user and will not stop downloading or copying in any way. Google will still index the images in their image search, I can just go there to get it. Or I can select it on the page and press CTRL+C (or CMD+C) to copy it.
The browser will always download the image to be able to display it, this means I can always get this image somewhere.
If you don’t believe me, check out Chris Coyier over at CSS-Tricks, he has an article about fighting image theft. One of the techniques he mentions (#2) would be my favourite: adding a big copyright claim to the bottom of the image and hiding it with CSS. Funny thing, he also puts right-click blocking as ineffective and especially annoying.
Felt like I had to add this point of view to the conversation.
I'm just looking for solution to disable right clicking in Fancybox popup window, it's not that the whole site has right click disabled and I know it's not going to stop anyone who really wants the image... and yes I'm familiar with Firebug :-)
Watermarking is out of question, at least for the time being...
So, now I've got right click disabled for images only with this in
Code:
<head>
Code:
<script type="text/javascript">
$(document).ready(function()
{
$('img').bind("contextmenu", function(e){ return false; })
});
</script>
This works as expected but it does not disable right click in Fancybox popup - I've tried various solutions (including those in devaintart's link, thanks for sharing) which I found but can't figure out where the function should be in... anyone have a suggestion?
Does it go to template header or should it be included in some i18n gallery file to get right click disabling working in Fancypopup?
Or should I perhaps only edit the above mentioned code somehow?
Am I dumb or am I just dumb? :-)