toplakd Posted January 30, 2019 Posted January 30, 2019 Have tested cloudflare a little, and problems are appearing with geolocation, as it happens manytimes that price is shown with tax, where it should not as ip comes from cloudflare. This does not happen if cloudflare is bypassed without caching. However, cloudflare supports geolocation and it adds HTTP header named “CF-IPCountry” to all requests. So if I add in template {$smarty.server.HTTP_CF_IPCOUNTRY} it writes out visitors country. Could be default country set from that HTTP header with some sort of code and rewriting frontcontroller? Thank you. Dejan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now