Hello @doufenglai
Thank you for using my plugin. Yes, this feature will not work. Because of the free API which we are using for tracking the IP. That API is not working anymore.
Till I didn’t find any solution or new API. I am removing this feature.
I hope the rest of the features are working fine for you.
Regards
Narinder.
Thank you for your reply.
I do love this plugin. Do you consider change another API? I google “free api ip to country” and found a free one: ipgeolocation.io.
I am not familiar with this。 Hope would helpful.
Hello @doufenglai
Thank you for using the plugin. Now Plugin has a new API. Please update the plugin.
Thank you for your love and support.
Regards
Narinder.
Greetings! @narinderbisht
Thank you so much to add this function again!
After I updated this plugin, can’t find the button (to open or close this function) anymore. Could you tell me how to control it in this version?
Have a good day!
Simon
Hello @doufenglai
Please update the plugin version. For auto country detection. Please register your free API at https://ipgeolocation.io/
I hope the new changes will work for you.
Regards
Narinder.
Hello @narinderbisht
I was surprised and delighted by the speed of plugin optimization!
I found the API limit is 1000 times per month, which is just 30 times per day. I’m sorry that I didn’t make a clear study of this API before recommending it to you
If there was a better alternative, would you consider it? Do you think it is possible to use Cloudflare’s GEOIP API? Please understand my persistence, because I love your plug-in so much.
Ref:
https://tedpiotrowski.svbtle.com/free-geoip-api-with-cloudflare-workers
https://support.cloudflare.com/hc/en-us/articles/200168236-Configuring-IP-geolocation
-
This reply was modified 3 years, 5 months ago by
doufenglai.
I found this code will show “US”:
echo $country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];
Hope this information is useful.
Hello @doufenglai
Thank you for showing so much love for this plugin.
Please update the plugin version. Now no need for an API key. So there is no limit now.
The plugin is using this API URL:https://api.iplocation.net
It is working without any API key.
https://api.ipgeolocation.io/getip This URL just picks the user browser IP address and the above API fetches the user country code.
I hope now it will work fine for you.
Regards
Narinder.
I don’t know what to say. You’re my hero, man. Thank you so much!
Simon
@narinderbisht May I open this thread again? Currently, it does not work anymore. Did you remove the API or the API is not usable anymore for free? The field is blank when activating this feature.
Is it possible to add a option to use cloudflare geolocation on this plugin?
It works well :
$country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];
Hello @doufenglai
Please update the plugin version. The old IP API is not working. So replaced with a new API.
I hope it will work for you.
Regards
Narinder.