DEV Community

Disable Right Click and Protect Images/Videos - Safeguarding Your Website Content

IamSh on February 20, 2024

Safeguarding Your Website Content: Various Methods to Disable Right Click and Protect Images/Videos Disclaimer - This Article is about how to dis...
Collapse
 
lionelrowe profile image
lionel-rowe

How to make your site less accessible, annoy the hell out of your users, and still fail to prevent people from copying your stuff by using dev tools or viewing your site's source

Collapse
 
sh20raj1 profile image
IamSh

This Article is about how to disable right click on specific elements, and for sure it's not a full proof way to prevent your images/videos. See the Conclusion part of the Article.

Collapse
 
martinfjant profile image
Martin Falk Johansson

This article, that looks like it's AI written, you even left in "title:..", is about something that should not be done.

Not only is it ineffective (just annoying), but it is also about something that should not be done. You are encouraging people to ruin the internet for stupid reasons.

Thread Thread
 
sh20raj1 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
IamSh

It dosen't matter, it could help many people, but you look and are stupid, so you are unable to understand the use case....
And I'm not here to explain everyone, If you are not getting the point then don't do useless comments
I'm disabling right click on elements not on the full website so that it will be annoying.
and is there any logic in your text i.e.

Not only is it ineffective (just annoying), but it is also about something that should not be done. You are encouraging people to ruin the internet for stupid reasons.

Get Lost.....

Thread Thread
 
martinfjant profile image
Martin Falk Johansson

I know what the script the AI wrote for you does: I can understand javascript. The problem is that you do not seem to understand why most of us believe that disabling right clicking is very, very bad. It is very, very bad even if it is only done on image elements.

The fact that your grammar in the comments are much worse than that of the article further gives weight to the suspicion that this is AI generated crap.

Rather than calling us stupid and not having read the article that you did not even bother to write yourself, if you did not found our warnings clear enough, could easily just have asked why.

:)

Collapse
 
sh20raj1 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
IamSh

Read the full article first then use your brain to comment....

Collapse
 
lionelrowe profile image
lionel-rowe

I read the whole article, interesting how it didn't once mention accessibility or user experience.

Your Scientists Were So Preoccupied With Whether Or Not They Could, They Didn’t Stop To Think If They Should

Collapse
 
mrlinxed profile image
Mr. Linxed

Please don't disable right-click.

There are plenty of reasons to use right-click on a website that have nothing to do with "stealing" your images.

Collapse
 
devdufutur profile image
Rudy Nappée

F12 -> inspect and "steal" everything, regardless of any "protection" you can think of.

PS. IMO Using all these techniques is like spitting on your users.

Collapse
 
sh20raj1 profile image
IamSh

You haven't seen the article properly...

Collapse
 
sh20raj1 profile image
IamSh

This Article is about how to disable right click on specific elements, and for sure it's not a full proof way to prevent your images/videos. See the Conclusion part of the Article.

Collapse
 
techman09 profile image
TechMan09

Yeah, this is not a good thing. All it does is annoy people, it does not actually prevent people from saving the files.

Collapse
 
sh20raj1 profile image
IamSh

See the Article Properly

Collapse
 
martinfjant profile image
Martin Falk Johansson

We did. It's still stupid. You should not disable right click ever. It also looks like it's written by an AI.

Collapse
 
techman09 profile image
TechMan09

I did, it’s stupid, pointless, and encourages developers that don’t know any better to make their users hate them.

Collapse
 
subaash_b profile image
Subaash

Can we prevent the usage of Snipping tool?

Collapse
 
sh20raj1 profile image
IamSh

Of course not, If you will prevent it there will be possibility that person can take picture using another device's camera....

As I said in the article in bold characters no method is entirely foolproof :- dev.to/sh20raj1/disable-right-clic...

Collapse
 
subaash_b profile image
Subaash

Hmm..Thanks for the reply. I appreciate that.