Skip to content

Drop /redirect-to self-host validation - #9

Merged
mattiasgeniar merged 1 commit into
mainfrom
drop-redirect-to-self-block
May 5, 2026
Merged

Drop /redirect-to self-host validation#9
mattiasgeniar merged 1 commit into
mainfrom
drop-redirect-to-self-block

Conversation

@mattiasgeniar

Copy link
Copy Markdown
Contributor

The self-host check was cargo-cult. A recursive `/redirect-to → /redirect-to` chain is bounded by every HTTP client's max_redirects setting (Guzzle 5, curl 50, browsers ~20), so the rule prevented no real abuse — just made the endpoint less useful for testing same-host redirect behavior. Scheme allowlist (http/https) and the `X-Robots-Tag: noindex, nofollow` response header stay; those carry their weight.

@mattiasgeniar
mattiasgeniar merged commit 78b403d into main May 5, 2026
3 checks passed
@mattiasgeniar
mattiasgeniar deleted the drop-redirect-to-self-block branch May 5, 2026 15:35
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