The Lab Gravity Forms IP Location and Restriction Add-On

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
Gravity Forms IP Location and Restriction Add-On

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:

  1. Install the plugin and activate via the WordPress plugins menu.
  2. Sign up at IPStack and obtain your API key.
  3. Enter your API key under Forms → Settings → IP Location.
  4. 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.

Wanna give it a go? Download the plugin here and we have a Github repo here

Dean Oakley

Written by Dean Oakley

Dean founded Thrive Digital in 2006 and has worked in the design and development space ever since. He received 1st Class Honours in a Bachelor of IT and oversees all technical aspects of our projects.