Is this really my user agent string?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Is someone pulling my leg?

@ToddAndMargo your question or concern is what?

Just to be clear, everything you’re seeing is completely normal and exactly what you’d find in Chrome or other browsers.

Are you actually trying to understand how a User Agent works and what it should display, or are you just posting for attention with the whole “is someone pulling my leg” comment? Because there’s nothing unusual about what you saw on the site.

The way browsers and websites communicate includes certain bits of information for compatibility. That’s why the User Agent lists several identifiers. It’s mostly legacy at this point, since modern sites rely more on JavaScript and Client Hints, but the format is still kept for older or less adaptive websites.

Here’s what each part means:

  • Mozilla: A historical holdover from the 90s when sites were built for Netscape. Other browsers started including it to avoid compatibility issues.
  • OS: Simply tells sites what operating system you’re on.
  • WebKit: Indicates compatibility since Chromium’s Blink engine was forked from WebKit.
  • Chrome/Chromium version: Shows the browser’s version for compatibility purposes.
  • Safari: Included because of shared WebKit heritage, helping some sites render correctly.
  • KHTML and Gecko: Legacy references to older engines like Konqueror and Firefox, again for site compatibility.

So yes, that’s your real User Agent string. So what exactly is the issue where you’re here with the whole “Are you pulling my leg” comment as if something was being done wrong?

If you really want to know why I am asking, it is to alter my user agent (–user-agent) sent to my curl library in Raku when certain sites complain about curl’s user agent.

my $FirefoxUserAgent = ‘Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0’;
my $CurlUserAgent = “curl/7.29.0”;
my $BraveUserAgent = “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36”;

And Brave’s did not look anything like Firefox’s or Curl’s. I thought someone was pulling my leg.