Skip to content

Use custom user-agent in the public_inbox plugin - #392

Merged
psss merged 1 commit into
psss:mainfrom
mripard:anubis-fix
May 17, 2025
Merged

Use custom user-agent in the public_inbox plugin#392
psss merged 1 commit into
psss:mainfrom
mripard:anubis-fix

Conversation

@mripard

@mripard mripard commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

The lore.kernel.org mailing-list archive recently started using the Anubis proxy to filter out AI scrap-bots.

Unfortunately, it seems to be somewhat based on the User-Agent, and the requests default one will get rejected. This means that the public_inbox will now be completely broken.

This can be bypassed by setting a custom User-Agent though, which restores the expected behaviour, so let's do so.

@mripard
mripard force-pushed the anubis-fix branch 2 times, most recently from 16b2545 to 6ea141b Compare April 15, 2025 12:56
@eballetbo

Copy link
Copy Markdown

LGTM, I can confirm that with that patch the public-inbox plugin works again.
Thanks Maxime for this fix.

The lore.kernel.org mailing-list archive recently started using the
Anubis proxy to filter out AI scrap-bots.

Unfortunately, it seems to be somewhat based on the User-Agent, and the
requests default one will get rejected. This means that the public_inbox
will now be completely broken.

This can be bypassed by setting a custom User-Agent though, which
restores the expected behaviour, so let's do so.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
@psss psss changed the title public_inbox: Use custom user-agent Use custom user-agent in the public_inbox plugin May 17, 2025

@psss psss left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks much for the fix, Maxime! Confirmed that the plugin now works fine. However, for larger queries it fails, but that seems to be a different problem, filed as #393.

@psss psss added this to the 0.22 milestone May 17, 2025
@psss
psss merged commit 54fed72 into psss:main May 17, 2025
@psss psss self-assigned this May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants