In this article
Geolocation restrictions can be applied to any survey to block access from people or bots from accessing the survey in defined countries and regions. When geolocation restrictions are enabled for a survey, a custom block screen can be created which is shown to users who attempt to access the survey from the configured geolocation restricted areas.
Geolocation blocking can be enabled/disabled from the Survey Access area of the survey overview.
To configure geolocation restrictions, perform the following steps:
Click the Configure button to configure geolocation restrictions.
By default, geolocation restrictions are disabled. Click the On button to enable it.
From the Countries or regions drop-down list, select all those countries or regions that you wish to block from gaining access to the survey. You can also start typing in the drop-down list to filter the available options. Multiple entries can be selected and are added to the list as you select them.
In the section below the country list, edit the page content which will be presented to users who attempt to access the survey from within the restricted geolocation areas.
Finally, click the Save button.
Changes to these geolocation restrictions take immediate effect, without the need to re-launch the survey.
Survey scripting can also be utilized to gain information about the location of the respondent (such as the country or continent name and code). Here is an example of how to reference these fields from the new GetRespondentLocation() scripting function:
Block or not: ^GetRespondentLocation().ShouldRespondentBeBlocked^
Country ISO code: ^GetRespondentLocation().RespondentCountryIsoCode^
Country name: ^GetRespondentLocation().RespondentCountryName^
Continent ISO name: ^GetRespondentLocation().RespondentContinentIsoCode^
Continent name: ^GetRespondentLocation().RespondentContinentName^
This can also be used to compute country info to a survey variable for reporting purposes.