Implementing GEO IP redirects in section.io

Its common to implement GEO IP in section.io, The flexibility of section.io allows quite sophisticated redirect rules to be setup easily.

Having this logic run inside section.io means that users globally connect to the closest Edge PoP for them so that there are no latency delays.

When implementing high performance configurations such as HTML caching in section.io, Having GEO IP (and other) logic at the Edge (implemented in Varnish) is essential because requests from users are served from cache as often as possible which means that origin server logic does not get executed.

Here is a snippit to help quickly deploy GEO IP logic at the edge: