Jimmy77 Posted August 16, 2012 Share Posted August 16, 2012 Does anyone have a piece of code or module to install that will protect images from being copied? Basically I would like to prevent people from right clicking and copying product images or from dragging them to desktop to copy. I'm trying to install the watermark module but would like some code as an extra protection. Link to comment Share on other sites More sharing options...
Grafics Posted August 16, 2012 Share Posted August 16, 2012 Hello, in website, it's really difficult to protect images. You can use javascript to stop right click, but if you really want the picture you can block java. Replace in header.tpl in your template <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> by <body onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onMouseOver="window.status='..message perso .. '; return true;" {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> You can stop 70% visitors only... Link to comment Share on other sites More sharing options...
Jimmy77 Posted August 16, 2012 Author Share Posted August 16, 2012 Thanks for this. I appreciate that if someone knows their stuff they can get the images. But my client wants some protection in the form of a watermark and some code. I'll try the code you suggest and I'll let you know how I get on... Link to comment Share on other sites More sharing options...
Jimmy77 Posted August 17, 2012 Author Share Posted August 17, 2012 Thats great. Just what was needed. Thank you. Link to comment Share on other sites More sharing options...
cerovic Posted July 29, 2017 Share Posted July 29, 2017 good code, work also for 1.6.X just ad just onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onMouseOver="window.status='..message perso .. '; return true;" to body tag. thank for sharing Link to comment Share on other sites More sharing options...
Derres Posted August 12, 2017 Share Posted August 12, 2017 Up, any better solution ? Link to comment Share on other sites More sharing options...
anth55 Posted October 30, 2017 Share Posted October 30, 2017 Are there any possibilieties to turn of RMB? I actually did it a year ago and wanted to turn that off again but cant remmember what have i changed. Damn Link to comment Share on other sites More sharing options...
selectshop.at Posted October 30, 2017 Share Posted October 30, 2017 For to protect images you can use watermark native module. Find it on the module list of your back-office (Prestashop 1.3 -> 1.6). For PS 1.7. this option was removed and moved to paid addons. @anth55 what is meant by RMB ? Link to comment Share on other sites More sharing options...
anth55 Posted October 30, 2017 Share Posted October 30, 2017 Rmb is right mouse button Link to comment Share on other sites More sharing options...
selectshop.at Posted October 30, 2017 Share Posted October 30, 2017 Right Mouse Button is not effective enough. You can read and open with browser each picture reading it from source code and as well copy all textes. RMB is for internet dummies, but not for professional steal. I presume you added the code to your header.tpl file of your Theme.... Link to comment Share on other sites More sharing options...
anth55 Posted October 31, 2017 Share Posted October 31, 2017 Thats right, i added the code to header.tpl I actually have checked there as one of the first tihing however F3 in my total commander showed totally different code than in sublime text. Thanks for your help selectshop.at! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now