Using IP Addresses to Limit Form Access

Using IP Addresses to Limit Form Access

My organization was concerned that people from outside our area could use our public forms. Here's my solution:

MaxMind has a free geo-ip database you can download. I sorted thru this to find and define an IP address range for my city and surrounding areas. To make it simple, I'm just using the first octet (66.167.22.1 is just 66 for my purpose).

Using this simple line of code
  1. IPN = (zoho.ipaddress.getPrefix(".")).toLong();
I can now enforce (via the value of IPN) a reasonable level of geo-based security on my forms. Someday, this could be a built-in feature for ZOHO Creator.

Try my test app and report back what you find: https://creator.zoho.com/niskypto/ipme

John M. Whitney