[Smush Pro] No right click on Images using Smush

Hi there WPMUDEV.

I don’t know if this is quite in your spec but it kind of involves Smush, so I thought it might be worth a try.

Images that have been Smushed apparently ( according to the developer of “No Right Click Images Plugin” ) sit outside of WordPress ( “If you are able to click on an image to display the image in a new window, it is then outside of WordPress and can’t be protected.” – their words ).

I need some way of preventing images from being right clicked to prevent them from being easily saved (for the technical illiterate) but it still needs to work with the WordPress Gallery Magnific lightbox.

Any ideas/assistance will be much appreciated.

  • Dimitris Kalliris
    • Support Team Lead

    Hello there

    If you use Bulk Smush then images from your server are getting fetched to Smush servers where they are getting optimized and sent back to your server replacing the un-optimized versions.

    If you use Smush CDN though, then the optimized versions of the images aren’t getting from your server, but from our Smush CDN servers, so an image URL is actually changing in the frontend from something like
    https://example.com/wp-content/uploads/2019/11/image.jpg
    to something like
    https://123456.smushcdn.com/1234567/wp-content/uploads/2019/11/image.jpg

    Having said that, I tried this plugin in a testing site of mine with Smush CDN enabled and I noticed the opposite. All images from Smush CDN are protected and can’t right-click on them.

    Can you please let me know of an example page where I could notice this?
    Like an image where the right-click is still enabled?
    Please advise!

    Thank you,
    Dimitris

  • André
    • André Bothma

    Hi there WPMUDEV (Dimitris)

    THANKS for the reply and the testing done on your side regarding this!

    The homepage will suffice to serve as an example here [attachments are only viewable by logged-in members] (site still in development/not live as I’m trying to get everything setup and working first). https://www.Seductful.xxx (just hit escape to get rid of the Hustle popup).

    There is a logo image on the homepage on which I can right click and the plugin is active and if I check the image source it is being delivered from the Smush CDN.

    Seductful complete logo - Medium

    I’ve granted Support Access to the WP-Admin should you need it for any testing/configuration from your side regarding this.

    THANKS again and hear from you soon I hope… :wink:

  • André
    • André Bothma

    Hi there WPMUDEV (Dimitris)

    SO WE LEARN!!!

    Apologies, while reading your last reply informing me that neither you or you colleagues are able to right click the image on the homepage, it dawned on me that maybe while being logged into WP-Admin ion another browser tab I might be able to right click on the image. So I made sure I’m not logged into WP-Admin anywhere, opened just the homepage and WOW, no right clicking on the image was allowed. Just to confirm, I logged into WP-Admin in another browser, refreshed the homepage tab and there I could right click on the image again…

    The developers of the plugin were obviously better than I gave them credit for when coding.

    So THANKS for your effort and time taken to resolve my self created problem/teach me a lesson!!!

    MUCH APPRECIATED Dimitris (WPMUDEV) as always!!!