Saurabh Jain Posted September 25, 2017 Share Posted September 25, 2017 I have seen websites which restricting copying ..how this can be done... Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 25, 2017 Share Posted September 25, 2017 With JavaScript, which is easy enough to disable and copy. Don’t waste your time. Link to comment Share on other sites More sharing options...
Saurabh Jain Posted September 25, 2017 Author Share Posted September 25, 2017 can you suggest which one to use? Link to comment Share on other sites More sharing options...
Joy Rex Posted September 25, 2017 Share Posted September 25, 2017 After a quick Google search, this answer (the Accepted Answer on StackOverflow) details how you could accomplish this with jQuery, which is one of the libraries IPS uses: https://stackoverflow.com/questions/2700000/how-to-disable-text-selection-using-jquery As @Adriano Faria mentions though - it might be a waste of your time as if you goal is to protect your content, that's near impossible to do in an online setting. If all you want to do is dissuade people from attempting it, then the solution I linked to may do you a bit of good and is fairly easy to implement. Link to comment Share on other sites More sharing options...
Joel R Posted September 25, 2017 Share Posted September 25, 2017 Plug-in idea for @Adriano Faria When user copies text, add line "This information originally written on foo.com" Link to comment Share on other sites More sharing options...
Joy Rex Posted September 26, 2017 Share Posted September 26, 2017 19 hours ago, Joel R said: Plug-in idea for @Adriano Faria When user copies text, add line "This information originally written on foo.com" That could be done with jQuery/Javascript too - on the highlight/copy event, insert text into the copied object. Of course, there's nothing that could stop the copier from removing that line (if they notice it) when they paste it elsewhere. You could get sneaky though, with text that appears on hover (like in title attributes) that most people copying wouldn't notice in the source code. Link to comment Share on other sites More sharing options...
Nathan Explosion Posted September 26, 2017 Share Posted September 26, 2017 19 hours ago, Joel R said: Plug-in idea for @Adriano Faria When user copies text, add line "This information originally written on foo.com" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.