Jump to content
thirty bees forum

Geolocation


fuji3776

Recommended Posts

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

 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...