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

163
Visualizações
can sites detect javascript executions on consoles?

Im building a bot and im wondering whether if its even possible for sites to detect javascript executions on the console. For example for a certain site the bot needs to add the item to cart and I do this

document.getElementsByClassName('w_C8 w_DA w_DF')[0].click()

through the bot will sites be able to detect that it wasn't an actual human clicking or will they automatically now it was code run to click the button

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes they will be able to detect that, because click event contains more than just an information that it have been clicked, for example coordinates of a mouse pointer. You can check that yourself by defining onclick function, for example:

document.body.onclick = function(e){console.log(e)};
document.body.click();

Now click and check the difference in console.

In onclick event object there is also a direct notification if it was actually clicked, or triggered:

e.isTrusted: false // clicked automatically
e.isTrusted: true // real click

Does anybody actually check that? Most sites surely don't.

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