OptinFlare Pro reads the visitor’s country from, in this order:
- the
CF-IPCountryheader of Cloudflare; - the
CloudFront-Viewer-Countryheader of Amazon CloudFront; - the
GEOIP_COUNTRY_CODEvariable of Apache mod_geoip; - the
optinflare_visitor_countryfilter, 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.