Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Saurabh Jain Posted September 25, 2017 Posted September 25, 2017 I have seen websites which restricting copying ..how this can be done...
Adriano Faria Posted September 25, 2017 Posted September 25, 2017 With JavaScript, which is easy enough to disable and copy. Don’t waste your time.
Saurabh Jain Posted September 25, 2017 Author Posted September 25, 2017 can you suggest which one to use?
Joy Rex Posted September 25, 2017 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.
Joel R Posted September 25, 2017 Posted September 25, 2017 Plug-in idea for @Adriano Faria When user copies text, add line "This information originally written on foo.com"
Joy Rex Posted September 26, 2017 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.
Nathan Explosion Posted September 26, 2017 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"
Recommended Posts
Archived
This topic is now archived and is closed to further replies.