Skip to content

reject requests for build URLs that don't set Accept: text/event-stream#2064

Merged
minrk merged 2 commits intojupyterhub:mainfrom
minrk:check-accept
Mar 4, 2026
Merged

reject requests for build URLs that don't set Accept: text/event-stream#2064
minrk merged 2 commits intojupyterhub:mainfrom
minrk:check-accept

Conversation

@minrk
Copy link
Member

@minrk minrk commented Feb 24, 2026

real EventSource requests do this, so this shouldn't break any browser use cases

some scripts may need updates

This may stop most bot crawling from triggering build, unless they are true simulated browsers, in which case Anubis wouldn't help, either

I noticed that most bot-triggered builds include build tokens, and I'm afraid that may mean true simulated browsers, so this wouldn't help at all and we need to start blocking user-agents.

real EventSource requests do this, so this shouldn't break any browser use cases

some scripts may need updates

This may stop most bot crawling from triggering build, unless they are true simulated browsers,
in which case Anubis wouldn't help
@minrk minrk merged commit 998c481 into jupyterhub:main Mar 4, 2026
20 of 21 checks passed
@minrk minrk deleted the check-accept branch March 4, 2026 17:16
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Mar 4, 2026
@minrk minrk mentioned this pull request Mar 5, 2026
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

Successfully merging this pull request may close these issues.

1 participant