Problem with geo lock GB

hi, strange problem. Using this code:

? if($_SERVER[“HTTP_CF_IPCOUNTRY”] != “GB”){ ?

i am trying to restrict users from UK accessing my website but it doesn’t work for UK. when type US, DE etc it block without any problem but GB doesn’t.

Anyt toughts?

It’s much easier to use Firewall Rules to block access by Countries.

1 Like