Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

297
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda