Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
how to disabled right click or set image can't download (proect image in React Js)

is it possible we can protect the image from things like right click and download, or screenshot our image? here the tag image

 <img
     src={pat.name}
     alt=""
     className="absolute "
     style={{
     top: 77,
     left: 20.5,
     zIndex: 2,
     width: 280,
     boxShadow: `0px 4px 8px 2px rgba(3, 21, 49, 0.06)`,
     }}
     />

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can't really protect an image from being download because it has to be downloaded by the browser in order to be rendered to the user, on the webpage, at some stage.

You can, however, restrict certain operations on images (e.g. right-clicking, dragging the image) which, for the common user, will restrict downloading the image file.

The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can become the target of pointer events. Thus, in the style prop, you can add the pointerEvents: none; property to disable the context menu when clicking on the image with the RMB.

Related read: pointer-events on MDN

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!