Right click disable (saving images block)

Hey i’m working on a portfolio website and i would like to block the right click so that people can’t directly download an image on the website.

Does anyone know how do it ?

Thank you in advance !

This would be a JavaScript addition to your site.

It’s only a few lines of code to put in at project level.

Here comes the but… there’s really little point in doing it. If people want to copy the image, they’re going to copy the image and there are so many ways they can do this. Some browsers even disable the disable I believe.

In summary, all you’re going to do is annoy some users of the site unless there’s a really unique and extraordinary design.

However, if you still want to do it, have a look at this for a few solutions:

Thank you Iratefox i will try this !