STRING, read-only.

Available inall subroutines.

Two-letter code representing the continent. Possible codes are:

NANorth America
SASouth America

These continents are defined by UN M.49.

The continent code for the Caribbean countries is NA.

Note that EU refers to the continent name, not to the European Union. For example, IP addresses allocated to Norway and Switzerland (members of the European Economic Area and the Schengen Area respectively, but not of the European Union) are presented with the continent code EU, meaning the geographic continent of Europe.

Try it out

client.geo.continent_code is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.

Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.

Tag requests with geolocation data

Add geolocation data about the client browser as extra headers in any requests from Fastly to your origin.

Geofence / block access to content by region

Group countries to cache content by custom regions or reject requests from some regions entirely.