Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

289
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda