The fm:IfGeoblocked allows you to block specifed countries from viewing the contents of the component. The component takes a coma separated list of allowed country codes and the allowedFrom attribute value.
<fm:IfGeoblocked allowedFrom="CA,US" >
You can see this
<fm:Else>
You cannot see this because you are in the wrong country!
</fm:Else>
</fm:IfGeoblocked>
Name | Required | Default | Description |
---|---|---|---|
allowedContinents | Optional | N/A | comma separated list of continent codes. AF/NA/OC/AN/AS/EU/SA |
allowedFrom | Optional | N/A | comma separated list of country codes, ie - US,CA |
ip | Optional | N/A | IP Address, can be provided for testing otherwise it will use visitors IP |