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

Possible False Flagging of User Agents as Bots #558

Open
GuiSousaJS opened this issue Feb 5, 2025 · 0 comments
Open

Possible False Flagging of User Agents as Bots #558

GuiSousaJS opened this issue Feb 5, 2025 · 0 comments

Comments

@GuiSousaJS
Copy link

GuiSousaJS commented Feb 5, 2025

Hello I'm creating this issue to evaluate the possibility of whiteflagging some devices from the known bot matcher verification.

Essentially what is happening in the lib/browser/bot/known_bots_matcher.rb class is that the gem verifies if the user agents contains key values present in the bots.yml file, however there are certain mobile phones whose codename is present as one of the keys that the code will try to match with.

For example the Redmi Note Pro 12 mobile has ruby as its codename (proof here) so the user agent string will contain ruby in it which in turn causes its to be flagged as bots when calling the bot? function. Another good example of this is the Motorola G20 mobile which is codenamed java (proof here).

Would it be possible to "ease" the restrictions on some of these mobile phone models ?

Here are excerpts of user agent strings that would be matched as a known bot users:

  • Android (34/14; 440dpi; 1080x2176; Xiaomi/Redmi; 22101316G; ruby; mt6877

  • Android (30/11; 280dpi; 720x1466; motorola; moto g(20); java; ums512_1h10

Edit: Forgot to say, to replicate these sorts of user agents strings you would need to use the instagram browser

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

No branches or pull requests

1 participant