• Is there a way I can add some code to certain posts containing images so that others cannot right-click and save them?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • There are ways to do this – which would involve using javascript.

    However, I can only strongly strongly advise against this. It is an extremely negative way of approaching the web and it absolutely infuriates me when I come across sites that have taken this approach.

    Disabling right click functionality punishes users who might have no intention of trying to copy your images. I use right click for a lot more things than saving images on the web.

    Also, if someone really wants to get an image from your website, they can. You can always get around things by either disabling javascript or taking a screen shot.

    Besides, for the most part, images published on websites are too small and compressed for them to be of any real use to anyone else.

    Just make sure you have a detailed copyright notice on your site.

    “There are ways to do this – which would involve using javascript.”

    So, what are those ways, please? Can anyone give a straight answer to the question, rather than just the reasons why they don’t think you should do it?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The short answer is no, you cannot disable right clicking. Many browsers have plugins and such that will simply bypass your attempts to do so. Firefox even has the bypass as a built in option (Options>Content>JavaScipt-Advanced button>uncheck “Disable/Replace context menus”).

    But if you want to try to disable it anyway, then Google would be the place to look. This is not a general HTML/Javascript help forum.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can I disable right click?’ is closed to new replies.