Country targeting with Cloudflare or CloudFront

OptinFlare Pro reads the visitor’s country from, in this order:

  1. the CF-IPCountry header of Cloudflare;
  2. the CloudFront-Viewer-Country header of Amazon CloudFront;
  3. the GEOIP_COUNTRY_CODE variable of Apache mod_geoip;
  4. the optinflare_visitor_country filter, for your own source.

OptinFlare does not ship a GeoIP database. When the country is unknown, country conditions let the form show.

The country is written in the page. With full-page caching, make sure your cache varies by country, or the first visitor’s country is served to everyone.

Last update