Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighthouse was not recognised #213

Closed
cortopy opened this issue Jul 1, 2023 · 3 comments
Closed

Lighthouse was not recognised #213

cortopy opened this issue Jul 1, 2023 · 3 comments

Comments

@cortopy
Copy link

cortopy commented Jul 1, 2023

User Agent String

Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36

Reproduce

  1. Go to https://pagespeed.web.dev/
  2. Run analysis of a website. I'm getting visits with browser using the User Agent
  3. You may verify User Agent by hovering on the information of the report as per screenshot attached

Screenshot from 2023-07-01 17-39-27

@cortopy cortopy changed the title <BOT_NAME> was not recognised Lighthouse was not recognised Jul 1, 2023
@omrilotan
Copy link
Owner

In my experience, all tests from https://pagespeed.web.dev/ use the Chrome-Lighthouse substring to identify as bot.

Examples:

  • Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4590.2 Mobile Safari/537.36 Chrome-Lighthouse
  • Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4590.2 Safari/537.36 Chrome-Lighthouse

Check example on isbot.js.org

@omrilotan
Copy link
Owner

Any way, you refer to the README clarifications:

What does "isbot" do?

This package aims to identify "Good bots". Those who voluntarily identify themselves by setting a unique, preferably descriptive, user agent, usually by setting a dedicated request header.

What doesn't "isbot" do?

It does not try to recognise malicious bots or programs disguising themselves as real users.

If a tool uses legitimate browser user agent string with no indication of being an automated service - we can not use this tool to identify it.

Continuing in clarifications section:

...other methods of identification can be added such as reverse dns lookup.

@omrilotan
Copy link
Owner

I can see Pagespeed have decided to not recognise themselves as a bot using the user agent string. Also mentioned in discussion #214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants