Implementing GEO IP redirects in

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

Having this logic run inside 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, 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: