Buy me a coffee

Squarespace: Disable Right Click Code

In this post

  • disable right click to prevent downloading photos
  • save images/inspect element when the right click feature is disabled

How to Disable Right Click on Squarespace with JavaScript

To disable Right Click on Squarespace Site, you just need to follow these easy steps.

Access Home > Settings

Click Advanced

Click Code Injection

and insert this code to Header

<script src=""></script>
$(document).ready(function () {
    return false;

Saved. Done!

How to Save Images/Inspect Element when the right click feature is disabled

Sometimes you want to download images/inspect element from a website that has disabled Right Click.

You can follow the instructions below.

1. Press Ctrl + Ship + C (Windows) or Command+Option+C (Mac) to open Chrome Dev Tools

2. Press Ctrl + Shift + P (Windows) or Command+Shift+P (Mac) to open the Command Menu

The Command Menu.

3. Start typing JavaScript and select Disable JavaScript, then press Enter.

All JavaScript is now disabled. You can try saving images or Inspect Element!

Selecting 'Disable JavaScript' in the Command Menu.

3 thoughts on “Squarespace: Disable Right Click Code”

  1. Hi there,

    I have copied the above script as suggested but now i have this on my website header-

    How do i remove the below from my website header?

    script type=”text/javascript”> $(document).ready(function () { //Disable full page $(“body”).on(“contextmenu”,function(e){ return false; }); //Disable part of page $(“#id”).on(“contextmenu”,function(e){ return false; }); });


Leave a Comment

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to:
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder