by forgepress on WordPress.org
Country-based choice rules for Gravity Forms. Hide or replace field choices per country, with optional VPN/Proxy handling.
ForgePress Country Choice Rules for Gravity Forms lets you define rules that remove specific choices (radio, dropdown, checkbox options) for visitors from selected countries. This happens server-side (secure), and you can configure a fallback choice to auto-select when an option is removed.
CF-IPCountry) with 1h caching for IP lookupsThis plugin is not affiliated with or endorsed by Gravity Forms. It simply integrates with Gravity Forms via its standard hooks.
This plugin may use third-party services to determine the visitor’s country and (optionally) detect VPN/Proxy usage.
Cloudflare (if your site is on Cloudflare):
We read the CF-IPCountry header provided by Cloudflare. No outbound request is made by this plugin.
Privacy: https://www.cloudflare.com/privacypolicy/
ipapi.co (free) (default geolocation when Cloudflare is not present):
The plugin requests https://ipapi.co/{IP}/json/ to map visitor IP → country.
Data sent: visitor IP only.
Retention: result cached in WordPress for 1 hour.
Privacy: https://ipapi.co/privacy/
Optional VPN/Proxy checks (opt-in by the site admin):
security=1 to check VPN/Proxy/Tor.No form entries or personal form fields are sent to these providers. Admins can disable optional VPN checks entirely.
GDPR/Privacy: Only an IP address may be sent to the selected provider(s) to derive country/VPN status. You should disclose this in your site privacy policy if enabled.
This is an independent plugin for Gravity Forms and is not affiliated with or endorsed by Gravity Forms. The name and readme make this relationship clear.
gform_pre_render and validated on gform_validation.