fm:IfGeoblocked


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.

Example

<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>

Supported attributes

NameRequiredDefaultDescription
allowedContinentsOptionalN/Acomma separated list of continent codes. AF/NA/OC/AN/AS/EU/SA
allowedFromOptionalN/Acomma separated list of country codes, ie - US,CA
ipOptionalN/AIP Address, can be provided for testing otherwise it will use visitors IP

See also