• Resolved pierre1688

    (@pierre1688)


    Hi all,
    Sorry for any inconvenience!
    How to implement the content protection feature in AMP environment?
    Please advise!
    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @pierre1688. Most content protection features are JavaScript based and not likely to work in AMP URLs.

    Note also that even with a right click disabled or with such a plugin active as browsers need to render your code it’s very easy to bypass such plugins by using your browsers developer tools via the browser settings. In addition many browsers have a security feature to disallow disabling right clicks.

    If you’re considering placing content behind a paywall or subscription as opposed to disabling right click there are AMP components such as amp-access and amp-subscriptions.

    You may also wish to check up with Laterpay or any other service or plugin and enquire about AMP compatibility going forward.

    Using “Password Protection” is another option you may wish to avail of for your content.

    Let me know if you have any further questions on the above.

    Plugin Author Weston Ruter

    (@westonruter)

    There are also some CSS-based of preventing copying text and images.

    For text, there is user-select:none.

    To thwart an image from being saved, you could overlay the image with a div. Here’s an example Glitch showing how to do that: https://amp-img-annoying-overlay.glitch.me/

    The first image on the page allows right-clicking (or long-pressing), the second does not.

    Disclaimer: These are annoying for users.

    Thread Starter pierre1688

    (@pierre1688)

    Hi Weston and James,
    Thanks for detailed explanation about this question.
    In fact, I already added content protection feature into my non-AMP website. It just can’t use right-clicking and long-pressing to access any content and images of articles.

    So, I wish to find any plugins or implementing any simple codes to achieve the goal in AMP environment.
    Anyway, thanks for giving any directions.

    No problem at all, let us know if you have any further questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to bundle content protection feature?’ is closed to new replies.