-
Notifications
You must be signed in to change notification settings - Fork 1
Increase limit of the IP Lookup
Keywords: IP Lookup doesn't work; console returns error: "Limit Exceed"; IP Lookup doesn't change country; How to setup IP Lookup;
Smart Phone for Ninja Forms has an option to automatically set the user's country based on their IP address.
We use ipinfo.io to get users IP address and country as it provides 50,000 requests per month which is more than enough for small and medium businesses. If you exceed this limit, you can choose any plan on ipinfo.io and put their API key in the field settings.
To find the option:
- Open your Ninja Form;
- Click on the Smart Phone field;
- Open field settings;
- Extend Restrictions settings;
- At the top of the extended settings you can find two options: ALLOW IP LOOKUP, IP LOOKUP API KEY;
NOTICE: To find "IP LOOKUP API KEY" you should enable "ALLOW IP LOOKUP".
- Open ipinfo.io;
- Sign up with a method you prefer (by google, github or manually);
- At the left sidebar click on the "Token";
It's a page where you can find your unique "Token".
To copy this token you can click on "Copy to Clipboard" and paste token in the settings field.
You can use this feature to only allow requests made from certain domain names. Requests not originating from these domain names will be blocked. Note that any subdomain in the whitelisted domain will also be able to make requests.
We INSIST ON USING THIS RESTRICTION because we use JavaScript to make requests to ipinfo.io, so token CAN GET EVERYONE
- At the left sidebar click on the "Token";
- Scroll down to the "Token Security";
- Write your domain to the "Whitelist Referring Domains" list;
- Click "Save";