It’s frustrating when someone uses your work without permission whether that’s your writing, images, or code. If you run a WordPress site (especially a photography portfolio, art site, or product showcase), you’ve likely worried about visitors right-clicking to save images or copy text.
Disabling right-click (the browser “context menu”) won’t stop screenshots or determined scrapers, but it can discourage casual copying and reduce “Save image as…” behavior. Think of it as a lightweight deterrent, not complete protection.
In this guide, you’ll learn two simple ways to disable right-click in WordPress: a plugin method (fastest) and a small code snippet (more control).
Common Reasons Site Owners Choose to Disable Right-Click Functionality
Disabling right-click on WordPress sites is a method often used to protect content from being copied or stolen. For websites that host original content, such as photography portfolios or creative blogs, preventing unauthorized use of images, text, or code is crucial. Right-clicking allows users to easily save images or copy text, which can lead to plagiarism or theft of intellectual property. For a photography portfolio, disabling right-click helps ensure that high-quality, professional images cannot be casually downloaded or repurposed without permission, protecting the photographer’s work and business.
On the downside, disabling right-click can negatively affect the user experience. For example, users in certain niches, like education or tutorials, may rely on right-clicking to copy content for personal use or research. Blocking this functionality can frustrate visitors and discourage them from engaging with the site. In cases like blog food recipe or DIY sites, where readers might want to save or print content, disabling right-click could hurt usability and user satisfaction.
Ultimately, the decision to disable right-click depends on balancing content protection with user experience, especially for sites that heavily rely on media like WordPress photography portfolios.
How to Disable Right-Click in WordPress
You can disable the right-click menu in WordPress in two ways: (1) install a plugin (fastest), or (2) add a small code snippet for more control. Both options are below.
Method 1: Use a No Right-Click WordPress Plugin
Go to Plugins → Add New in your WordPress dashboard, search for one of the plugins below, then install and activate it. After enabling, test on the front end in an incognito window.
Disable Right Click For WP

The Disable Right Click for WP plugin is designed to protect your website content from unauthorized copying. It blocks visitors from right-clicking, a common method used to save images or copy text. This plugin is ideal for websites that need to secure intellectual property, such as photography portfolios, blogs, and e-commerce sites with proprietary images.
After you install and activate it you can go to Settings > Disable Right-Click for WP . There’s only one option Show Messages On Disable Events. Select Yes. The plugin will show a message saying that the right-click is disabled.

No Right Click Images

The No Right Click Images Plugin is a straightforward and effective WordPress solution for preventing users from easily downloading or copying images from your website. By disabling the right-click functionality specifically for images, this plugin helps protect photographers, artists, and content creators from unauthorized use of their visual content. It ensures that images cannot be right-clicked to save or copied, while leaving other site features unaffected, maintaining a balance between security and user experience.
Best for: image-focused sites. After activation, open the plugin settings and enable protection for images. Test by right-clicking an image on a live page.
WP Content Copy Protection & No Right Click

The WP Content Copy Protector plugin offers robust protection for your WordPress website by disabling common content-copying methods. It prevents visitors from using right-click, keyboard shortcuts (like Ctrl+C), and browser developer tools to copy text, images, or source code from your site. Designed for bloggers, photographers, and businesses that need to safeguard their original content, this plugin is lightweight and easy to configure, ensuring your work stays protected without affecting the user experience. With WP Content Copy Protector, you can secure your valuable content and minimize the risk of plagiarism.
Tip: start with light protection (right-click + basic copy shortcuts). Over-blocking can annoy real visitors and reduce engagement.
Method 2: Add a Custom Code Snippet
This method disables the browser context menu using a small JavaScript snippet. For safety, use a child theme or a code snippets plugin so your changes aren’t lost during theme updates. You can also add this to your theme’s functions.php file.
How to add the code snippet below:
- Log in to your WordPress admin dashboard.
- Go to Appearance > Theme File Editor.
- Open the functions.php file.
- Copy and paste the below code into the file.
- Save the changes.
// Disable right-click on the entire website
function disable_right_click() {
echo '
<script type="text/javascript">
document.addEventListener("contextmenu", function(e) {
e.preventDefault();
});
</script>
';
}
add_action('wp_footer', 'disable_right_click');This will prevent users from right-clicking on your entire WordPress site.
Conclusion
Disabling right-click on a WordPress site is a simple deterrent that helps reduce casual copying of images and text—especially on portfolio and product pages. It’s not foolproof, but it can stop the easiest “Save image as…” behavior and discourage quick plagiarism.
For best results, balance protection with usability: consider blocking right-click only on images, add watermarks where needed, and strengthen login security (see how to limit login attempts in WordPress). That combination protects your work without frustrating real visitors.



