0

Ultimately, I want to be able to disable the Right Click option across a website I am working on. I have managed to disable this across the Blog Content and all of the Images that appear within the Blog.

I have noticed that when you enter the Image address directly into the Browser, the Right Click still works. I have tried modifying the Code Snippets I have, as well as various Plugins, but nothing seems to work. Would it be a case that it is not possible to disable the Right Click option when loading the original image, by entering its Image address into the Browser?

Assuming this is the case, is it possible to prevent the Image from loading when entering the Image Address directly within the browser?

If there is a way, would this prevent the image from loading in Blog Posts etc too?

1
  • 1
    cPanel offers something called Hotlink Protection. While it does not guarantee what you asked for, it prevents a lot of regular users from directly accessing a file on your server. But please keep in mind, everything that is sent to a user's device, is technically downloaded by that user, and someone with enough technical skill can easily copy those data no matter what you do.
    – Johansson
    Commented Jul 31, 2020 at 4:16

1 Answer 1

0

Would it be a case that it is not possible to disable the Right Click option when loading the original image, by entering its Image address into the Browser?

No. You can’t control this.

Assuming this is the case, is it possible to prevent the Image from loading when entering the Image Address directly within the browser?

Possibly, but requests for files on the server bypass WordPress entirely, so any solution would need to be implemented outside of WordPress.

If there is a way, would this prevent the image from loading in Blog Posts etc too?

In all likelihood, yes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.