emmykane1570048207 Posted July 13, 2016 Share Posted July 13, 2016 We actually made a free plugin to disable right clicking and dragging and dropping on only images, so you protect your intellectual property without compromising the user experience by disabling right clicking everywhere. You can get it at www.squareguru.com/content-protection Link to comment
grapthar Posted July 24, 2016 Share Posted July 24, 2016 Just wanted to thank you for this! Seems to be the best solution. Link to comment
19designs92 Posted September 27, 2016 Share Posted September 27, 2016 @mcgarveybarlow Can a code be written to make a quick key action for shift-command-control-4 to trigger a screen white out?in other words its triggers a new empty page to load? Link to comment
Guest Posted July 1, 2017 Share Posted July 1, 2017 Hello! ^.^I have been trying to edit my HTML code on my blog and place the codes under the HEADER or my SIDEBAR on my blog, but it all seems to fail... what am I doing wrong? Why it isn't working? ANy suggestions? Link to comment
Guest Posted July 1, 2017 Share Posted July 1, 2017 Hello! :)Should I paste it on my header or side bar or edit HTML manually? Link to comment
ryguild Posted January 11, 2018 Share Posted January 11, 2018 (edited) adding this bit to prevent right-click <script type="text/javascript"> function nocontext(e) { var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName; if (clickedTag == "IMG") return false; } document.oncontextmenu = nocontext; </script> <style>img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none; } </style> Edited January 11, 2018 by ryguild Link to comment
andreacaresse Posted April 5, 2019 Share Posted April 5, 2019 YAAAAS... thank you!!! been searching everywhere for this and it works perfectly! Link to comment
immakingthisaccountjusttol Posted August 11, 2019 Share Posted August 11, 2019 Thanks you so much!! <3This was the code I wanted. Prevents drag on images but not on typed writting.Thanks again ryguild Link to comment
Guest Posted March 2, 2020 Share Posted March 2, 2020 No Its Not Figured Out Yet But Team Is Working On It And I Am Sure It Will Solved Very Soon; This Is One The Most Common Problem Faced By The SquareSpace Users. Link to comment
Guest Posted October 10, 2020 Share Posted October 10, 2020 On 6/21/2013 at 5:43 PM, foleyatwork said: Try this in custom CSS. img { pointer-events: none; } Thank you it works perfectly. Link to comment
rebecadourado Posted June 27, 2022 Share Posted June 27, 2022 On 9/3/2015 at 6:00 AM, Megalomaniac said: Hello world. I found this out there. I believe its from two sources, I do not recall where exactly, but i love it! Special Thanks to those coding geniuses out there! This cleanly disables drag and drop of images and disables the right click over all images. Simply place this in your main CODE INJECTION under HEADER. Save it and your done! <HTML> <HEAD></HEAD> <BODY on contextmenu="return false;" onselectstart="return false;" ondragstart="return false;"> </BODY> </HTML> <script> document.oncontextmenu = function(e){ var target = (typeof e !="undefined")? e.target: event.srcElement if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) return false } </script> Best to you all out there, Megalo Thank you, thank you, thank you! This one serves the purpose. Truly appreciate you for sharing it! Link to comment
gardenlady Posted January 19 Share Posted January 19 On 6/26/2022 at 10:58 PM, rebecadourado said: This one doesn't work on disabling the right click on images but does prevent dragging and dropping. has anyone else figured out how to disable the right click successfully? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment