Image-Only Right Click Disable
Smart protection. Instead of breaking the user experience for the whole page, this script specifically targets images to prevent "Save Image As", while leaving the rest of your site fully functional.
Right-click here works normally.
Right-click on the image is disabled.
Copy the Script
<script>
// Select all images on the page
var images = document.getElementsByTagName('img');
for (var i = 0; i < images.length; i++) {
images[i].oncontextmenu = function() {
return false;
};
}
</script>
Frequently Asked Questions
Blocking right-click everywhere frustrates users who want to use 'Back' or 'Reload'. Targeting only images protects your visual assets without breaking the rest of the browser's functionality.
Yes. No script can prevent a user from taking a screenshot (Print Screen) of your content.
Simply copy the script into your page footer. It automatically finds all <img> tags and applies the protection.