Skip links

How to Disable Right-Click on Shopify (No Coding Required) — 2026 Guide

If you sell on Shopify, you have probably watched someone right-click your hero image, save it, and recognize it on a knockoff store a week later. Disabling right-click on Shopify takes 30 seconds and stops most casual theme and image theft. This guide shows you three ways to do it — the easy app way, the Liquid-edit way, and the JavaScript snippet way — plus what right-click blocking can and cannot stop.

Why disable right-click on Shopify?

Right-click is the entry point for the laziest 80% of content theft. Here is what someone with right-click on your store can do in under 30 seconds:

  • “Save image as” — download your full-resolution product photography
  • “View page source” — copy your Liquid snippets, custom sections, hidden form fields
  • “Inspect” — open DevTools, see your API calls, copy your custom CSS
  • “Copy” — grab your product descriptions, ad copy, headlines

Blocking right-click does not stop a determined attacker (more on that below), but it stops 80% of casual copying — including the competitor employee, the dropshipper looking for a hero image, and the AI scraper using a simple browser extension.

Method 1: Use a Shopify security app (recommended)

The fastest, most reliable, and most compatible way: install a Shopify security app that handles right-click blocking plus everything else you should be blocking (DevTools, keyboard shortcuts, image drag).

We recommend ShopFence. It is free for the right-click + content protection features, takes one click to install, and you can toggle it on or off per page.

  1. Go to apps.shopify.com/shopfence-secure-your-store
  2. Click Install → approve standard Shopify permissions
  3. In the ShopFence dashboard, toggle on Right-click block
  4. (Optional) Toggle on Keyboard shortcut block (stops Ctrl+U, Ctrl+S, Ctrl+C)
  5. (Optional) Toggle on DevTools block for serious protection

Total time: under a minute. Works on every theme. No code changes. Free.

Method 2: Add JavaScript to theme.liquid manually

If you prefer not to install an app, you can paste a small JavaScript snippet into your theme. Warning: theme updates may overwrite your changes, so use this with theme backups.

  1. From Shopify admin: Online Store → Themes → Actions → Edit code
  2. Open theme.liquid in the Layout folder
  3. Just before the closing </body> tag, paste the snippet below
  4. Click Save
<script>
document.addEventListener('contextmenu', function(e) { e.preventDefault(); });
document.addEventListener('keydown', function(e) {
  // F12, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+U, Ctrl+S
  if (e.key === 'F12' ||
     (e.ctrlKey && e.shiftKey && (e.key === 'I' || e.key === 'J')) ||
     (e.ctrlKey && (e.key === 'u' || e.key === 's'))) {
    e.preventDefault();
    return false;
  }
});
</script>

This blocks right-click, F12 (DevTools), Ctrl+Shift+I and J (DevTools), Ctrl+U (view source), and Ctrl+S (save page).

Method 3: CSS-only image protection (lightweight)

If you only want to stop image theft (not full right-click), CSS alone can disable image dragging and “save image as” on most browsers. Add this to your theme’s CSS file:

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
img.protected { pointer-events: none; }

This is the lightest possible solution — no JavaScript, no app, zero performance impact. But it is also the easiest to bypass (any attacker can disable CSS).

What right-click blocking can and cannot stop

ThreatRight-click blocking effectiveness
Casual visitor saving an image✅ Stops 100%
Competitor employee copying copy✅ Stops most
Browser extension scrapers⚠️ Stops basic ones
Mobile screenshot❌ Cannot stop
Professional scraper (curl, Puppeteer, Playwright)❌ Cannot stop
Saved HTML via “Save Page As”⚠️ Blocked if you also block Ctrl+S

Right-click blocking is a deterrent, not a wall. For full content protection you need to combine it with DevTools blocking, image watermarking, and bot detection — which is exactly the layered approach ShopFence takes.

Does disabling right-click hurt SEO?

No. Google’s crawler does not use right-click — it reads your HTML directly. Right-click blocking has zero SEO impact. The only thing that affects SEO is your Core Web Vitals, and if the script you use is lightweight (under 1KB, like the snippet above) there is no measurable performance cost.

Does it affect accessibility?

It can. Screen readers and assistive tools sometimes rely on context menus. If your store serves accessibility-sensitive verticals (medical, legal, education), use a security app with accessibility-aware blocking like ShopFence, which detects assistive tech and allows normal behavior for those users.

What else should I block on Shopify?

Right-click is step one. The full content-protection layer should also block:

  • DevTools (F12, Ctrl+Shift+I) — stops competitors from inspecting your store
  • View source (Ctrl+U) — stops Liquid snippet copying
  • Save page (Ctrl+S) — stops full-page download
  • Image drag — stops drag-to-desktop saves
  • Print (Ctrl+P) — optional, stops PDF exports

All five are one toggle each in ShopFence’s free plan.

Frequently asked questions

How do I disable right-click on Shopify without an app?

Open Online Store → Themes → Edit code → theme.liquid, then paste a small JavaScript snippet (shown above) just before </body>. It works immediately on all pages.

Does Shopify have a built-in right-click block?

No. Shopify does not include any storefront-level content protection. You need to add it via app or theme code.

Will disabling right-click on Shopify break the cart or checkout?

No. The standard right-click block only intercepts the context menu — it does not interfere with form fields, buttons, or any cart/checkout interaction.

Can determined scrapers still get my images?

Yes — anyone with curl, Puppeteer, or basic technical skill can bypass JavaScript blocking. That is why a complete content-protection setup combines right-click blocking with bot detection and rate-limiting, which security apps like ShopFence handle.

Is there a free way to block right-click on Shopify?

Yes — two options. Free Shopify security apps like ShopFence include right-click blocking on their free plan. Or paste the JavaScript snippet above into theme.liquid directly.

The fastest path

If you want this done in 60 seconds with no risk of breaking your theme on the next update: install ShopFence, toggle Right-click block on the free plan, done. For a complete picture of Shopify content protection, read our complete 2026 Shopify security guide.