Skip to content

PCGW/AGW requests being blocked due to generic axios user agent #5544

@Aemony

Description

@Aemony

Describe the bug

Hi!

I just wanted to give you a heads up that HTTP requests of yours are currently being blocked on PCGamingWiki and AppleGamingWiki's side of things:

Image

The blocks affects these two requests (there may be more but I primarily see these two appear):

`https://www.pcgamingwiki.com/w/api.php?action=query&list=search&srsearch=${title.replaceAll(

`https://www.applegamingwiki.com/w/api.php?action=query&list=search&srsearch=${title.replaceAll(

As you may or may not know, PCGW's infrastructure have been hammered by AI bots, crawlers, and scrappers for awhile now and to alleviate the pressure we had to enable more aggressive protection in the firewall. As part of that we also had to block some generic user agent strings such as empty ones or those starting with axios/... as these things were common identifier shared among a lot of the excessive traffic we were seeing.

This also means that the requests your users are currently doing are affected since you still seem to use the default axios/1.13.5 user agent string that Axios uses by default.

I do not have any experience with Axios myself but it seems to be pretty easy to set a custom one based on their documentation. I would therefor recommend you transition over to a more unique one so that web administrators can more easily identify and separate Heroic Games Launcher traffic from those of other applications and tools.

For example MediaWiki recommends using the following format:

User-Agent: clientname/version (contact information e.g. username, email) framework/version

e.g. something like this, which would be enough to bypass PCGW's current blocks:

User-Agent: HeroicGamesLauncher/2.21.0 (https://heroicgameslauncher.com/; heroicgameslauncher@protonmail.com) axios/1.13.5

Add logs

-

Steps to reproduce

Expected behavior

Screenshots

No response

Heroic Version

Latest Stable

System Information

  • OS [e. g. "Ubuntu"]:

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:unconfirmedSomeone works on identifying the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions