Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

fuji3776

Geolocation

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

 

Share this post


Link to post
Share on other sites

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

×