Skip to content

Add support for Cloudflare geolocation headers - #2673

Open
owenvoke wants to merge 1 commit into
shlinkio:developfrom
owenvoke:feature/cloudflare-geolocation
Open

owenvoke wants to merge 1 commit into
shlinkio:developfrom
owenvoke:feature/cloudflare-geolocation

Conversation

@owenvoke

@owenvoke owenvoke commented Oct 8, 2026

Copy link
Copy Markdown

This adds support for geolocation via the Cloudflare CF- headers.

It can be enabled via the new TRUST_CLOUDFLARE_GEOLOCATION_HEADERS env var. If the CF-IPCountry header is missing or unknown, Shlink will fall back to the GeoLite2 database.

Closes #2646

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.

Support Cloudflare location headers as an alternative to MaxMind

1 participant