Skip to content

GeoIP Headers

When smoxy forwards a request to your origin server, it automatically adds HTTP headers carrying geolocation and network metadata derived from the client's IP address. Use these headers to personalize content, switch languages, enforce regional compliance, or feed your analytics — without performing any IP lookups in your backend.


Available Headers

HeaderDescriptionExample
s-countryISO 3166-1 alpha-2 country codeDE, US
s-cityApproximate cityBerlin
s-subdivisionsISO 3166-2 region/subdivision codeDE-BY
s-latitudeApproximate latitude52.5200
s-longitudeApproximate longitude13.4050
s-iseuWhether the client is in the EU (1 = yes, 0 = no)1
s-asnAutonomous System Number of the client's network13335
s-asorgOrganization name for the ASNCloudflare, Inc.

All headers are added automatically to every request — no configuration needed.


Use Cases

Language switching

Use s-country to serve content in the visitor's language, or redirect to a localized storefront.

Regional compliance

Use s-iseu to apply GDPR-specific cookie consent banners only for EU visitors.

Geo-targeted content

Use s-country or s-subdivisions to show region-specific pricing, promotions, or shipping options.

Analytics

Log s-country and s-city to understand where your traffic comes from without relying on client-side analytics.

Access control

Combine GeoIP headers with Access Rules or Conditional Rules to restrict or modify behavior by region.