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

231
Visualizações
Is there a way in just HTML/JavaScript to get a "Switched" UserAgent from the header rather than navigator object

I was just wondering as this code is in pure HTML with some JavaScript that gets me my current IP addresses (using jQuery AJAX call to a IPv4/v6 site) and also gets me my useragent.

However as it's all JS, I get the UA from the Navigator object rather than the headers, and using an agent switcher extension it changes the UA when I call a page that outputs the headers server side say with a google search of "what is my user-agent", but my page just gets the ua from the navigator object and it is always the true UserAgent never the switched one e.g

let ua= navigator.userAgent;
document.querySelect('#UA').innerHTML = "UserAgent: <b>" + ua + "</b>";

Is there a way to get the header / switched agent as well as or instead of the way I am getting at the moment?

about 4 years ago · Juan Pablo Isaza
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