Gravity Forms IP Location and Restriction Add-On
We’ve created a simple plugin called Gravity Forms IP Location Add-On. It helps you find out the source country of anyone who fills out your forms.
2023-08-07

We’ve updated our Gravity Forms IP Location Add-On!
Our plugin integrates with IPStack to intelligently detect user locations by IP address. This allows you to customise your forms based on country, city, region, and more.
What’s New?
- Expanded Location Data: Use merge tags like {user:country}, {user:city}, {user:region}, {user:continent}, {user:latitude}, {user:longitude}
- Auto-populate Hidden Fields: Automatically capture location data—perfect for analytics and personalised marketing.
- Country-based Restrictions: Easily restrict forms based on country by IP address, controlling which users can submit forms from specified locations.
- Enhanced Caching: Multi-layered caching reduces API calls and improves performance.
Common Use Cases:
- Restricting country by IP for enhanced security and targeted form handling
- Region-specific promotions
- Address validation
- Personalised content and pricing
- Compliance with geographic service restrictions
Getting Started:
- Install the plugin and activate via the WordPress plugins menu.
- Sign up at IPStack and obtain your API key.
- Enter your API key under Forms → Settings → IP Location.
- Use the new merge tags in your forms or set them as default values in hidden fields.
Happy geolocating!
That’s about it! We hope you find this little plugin helpful.
Give it a whirl, and let us know what you think.