How to show different JS code according to visitor Geo?

Hi everyone!
Is it possible to inject JS codes into my page depending from visitors country? Or it would be better to find some solution at serverside via PHP?
By the way, I have Pro plan enabled.

You could do this via a Worker script. Overall, it probably is better to do this server side using the country information Cloudflare adds as HTTP header.

1 Like

Thanks, seems that at serverside it can be done more easily.

This topic was automatically closed after 14 days. New replies are no longer allowed.