Dear all, i want to know how to disable the copy option; so that others can't copy from my blog.
presently i am using; oncontextmenu='return false' in body tag; but this disables only right click of mouse; even this also one can select and do CNTL+C and copy.. any better suggestion.
how to disable copy
(7 posts) (5 voices)-
Posted 1 year ago #
-
This is anu
By using this code you cant copy through the keyboard and also through mouse try it
<body oncontextmenu='return false' onkeydown="alert('You Have No Permissions To Copy');">
All the best
Posted 8 months ago # -
Yeah... and all the scripting goes straight out the window if you use Firefox and use the NoScript plugin or Opera and disable scripting. Heck...even IE shell wrappers like Maxthon and AvantBrowser have simple configurable options that allow the context menu to function for sites that try to disable it.
Bottom line - you can't really prevent people from copying your stuff. You can only make it harder. And that includes some half-arsed advice someone posted on Usenet of displaying text as a JPG file to make it harder for people to copy it.
Posted 8 months ago # -
As sparx mentioned though you cant prevent people from copying just by installing a script. If they are novice to the trade then you can try something like what is mentioned in the post http://www.digitalprank.org/track-whats-being-copied-from-your-site/
Posted 8 months ago # -
@Thakur,
I do not find any perfect solution for disabling the copy-paste! You may find some scripts to disable the Ctrl+C or Ctrl+A but.. I can still copy by disabling scripts in my browser! On the other side - simple way could be - View Source!!Humm... So, better you put a copy right notice and write the content-thief politely!
Here are some ways to defeat the content thieves!
http://www.virtualhosting.com/blog/2008/take-it-back-100-tips-to-defeat-content-thieves/Cheers!
- DPosted 8 months ago # -
hai dipak
By using this code you cant copy through the keyboard and also through mouse try it
<body oncontextmenu='return false' onkeydown="alert('You Have No Permissions To Copy');">
All the best
from anuradha
Posted 8 months ago # -
Hi Anuradha,
Well, using the code, you can disable the copy function through key-board or mouse. My point was - how helpful is it? As you can always have options like:1. Disable Javascript: You can still copy - past with key-board and mouse.
2. View Source and copy!Cheers!
- DPosted 8 months ago #
Reply
You must log in to post.