• Resolved peterdeegan

    (@peterdeegan)


    Tobias,

    How can I stop copying of a TablePress table by ordinary viewers? ie right-click or Ctrl + C of cells or the entire table?

    I see there are various plug-ins etc to do that across a WP site. We’re interested in just protecting the tables. So it would seem best to add some custom commands?

    Suggestion: maybe this would be a good, paid, plugin? I suspect we’re not the only people who would like to protect their carefully compiled tables?

    Thanks

    Peter D/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’ll make it short: You can’t protect your data, especially not if you have in a textual form on your site.
    All those plugins that you mention can block JavaScript and keyboard shortcuts maybe, but they will never prevent someone who wants your data from copying it. They would just look at the source code of the page and copy the data from there.

    Regards,
    Tobias

    Thread Starter peterdeegan

    (@peterdeegan)

    Perhaps I should have been clearer. Sure, there’s no way to entirely protect table data … there’s always some ways around it. But blocking right-click etc does prevent most casual attempts to copy.

    After my first msg I found CSS similar to this, which should do the trick:

    .unselectable {
    -moz-user-select: none;
    webkit-user-select: none;
    ms-user-select: none;
    }

    or

    .noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
    supported by Chrome and Opera */
    }

    But I’ve tried adding that as Custom CSS in TablePress, following your documentation, without success.

    I suspect I’m not the only TablePress user who would like to protect, at least in part, the data they’re publishing. So a reply here will, I hope, help others.

    Danke,

    Peter D/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Peter,

    to apply this CSS to tables, please try changing the .unselectable and .noselect to .tablepress and then put this in the “Custom CSS”.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block/Stop copying in tables, right-click etc’ is closed to new replies.