Jump to content

Remove downloadable pictures for website data and right click

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.cesardumayhouard.com/

Good evening, I've just launched my website, and since it is my portfolio I want to protect my images.

And surprisingly any person can right click on any of my pictures and download them. So I want to know if it is possible to disable that for my website ?

 

I also noticed that, (even for some other website), you could just right click and then select "inspect element", which then shows you the HTLM and CSS code of that page, and you can clearly see the specific private address of the pictures an videos, and download them that way.

But I know that you can hide that data, and prevent a download, which something I've noted on some other website.

 

So If you can help me insure some picture security I will be grateful, thank you.

Edited by Jeyycie
Link to comment

Hi,

If you are a coder, There are dozens of ways you can get a photo on a website, no matter how protected it is.

The codes on the internet, only partially help prevent, for those who are not coder, for example: block right click, block drag image to download it,..

If you still need the code, we can give the code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Do you still a code to prevent this?

Add to Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function () {
  $("body").on("contextmenu",function(e){
    return false;
  });
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • Solution

Or you can try

img {
  pointer-events: none;
}

It only allows to download the whole page, not the image 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.