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

236
Views
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
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!