![]() |
|
Disabling right clic menu - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Disabling right clic menu (/thread-13333.html) |
Disabling right clic menu - ctdlg - 2019-10-13 We cannot protect our pictures, but we can slow down people who want to make a copy of our pictures. Disabling right clic options is easy : you just have to replace by body id="top" onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onMouseOver="window.status=''; return true;" in your template files ! With this simple trick, you must now use the printscreen keyboard key, ore browse the cache of your browser, to copy or find your pictures. If possible, I would like Zenphoto developers to add this in their templates for next update ! Disabling right clic menu - acrylian - 2019-10-13 We will not add this to official themes. No one really should. The context menu does include many more functions than downloading files. This is really an stone age old topic for 20 years that should not be discussed anymore and does not hinder anyone really much wanting to get anything. You don't even need to go to the cache, you can just disable JavaScript. Our old and still valid statement here: And here is a 2002 article about this: https://www.sitepoint.com/dont-disable-right-click/ Disabling right clic menu - ctdlg - 2019-10-14 I have had a look to your links. I'm not a professional, nothing to sell, I do not want many visitors right now : I keep the above non javascript solution. Right click menu is only affecting my pages : people who visit my site by accident have to accept my limitations. I will probably remove these limitations in a year or 2, when what I want to do will be done. Thank you for your comments. Disabling right clic menu - acrylian - 2019-10-14
Use a proper robots.txt file to exclude, they should follow that order. Also use `` elements to prevent indexing, we have a plugin for that. But of course if every anyone links to your site it may be added to their catalogue. If you really don't want to be indexed, use htaccess password protection for your site. That is the only way to really make sure this does not happen.
Not true, it IS a pure JavaScript solution as you are using JavaScript inlinehandlers. You could even add all this dynamically via a plugin. Which also means it can easily be disabled by disabling JS in the browser, either by using its own settings or by using some noscript/privacy plugin. But I am just giving some best practices advices and you are naturally free to do what ever you like on your own site ;-) Disabling right clic menu - ctdlg - 2019-10-14 This means I have to study a bit more, because :
I followed your advise : I only keep the disable right click function on my image.php pages (I removed code from index.php and album.php.) Menu is still present at bottom of each image.php page, after page header closing tag ! Right clic menu is only disabled inside the page. I did use htacess protection, but removed it for my family. I will have a look to your ```` elements plugin. Disabling right clic menu - acrylian - 2019-10-14
Yes, as well. ` |