david63 wrote:I am not sure that using GeoLocation is necessarily the best place to get this information from. I use that site for my Cookie Policy extension and it has quite a lot of "outages" - it does not matter as I bypass it when it happens, but for this type of extension it could be a problem.
Also the 150 lookups a minute is "moveable" - it used to be 250
Re reading this, I checked your extension and I saw you are using also cUrl, interesting.. what's the benefit?
I am actually using "file get contents" against the jSon response, atm.. only.
I do have a suggestion about you ext, but I am a little bit of tired right now and I need a rest, tomorrow I will expand it. What about the 250 lookups? Care to expand? Thx.
It is also interesting the PHP thinghy "geoip_country_code_by_name", I am still trying to realise how to use it though.
It relies on the maxmind site services (well known) as far as I understood after a quick read, today.
david63 wrote:If you do ahead with this then I would suggest that you use as much caching as possible as IP countries do not change very much and it will possibly save multiple lookups
Yup. I have already coded a lot on this ext today and I am using the cache wherever I can, good point.
BF79 wrote:good ext !!! but cloudflare gives to my members another ip !! so will not help me much !!
What does exactly do that crap? Gives a static IP, always the same, for every user or what?
If I have more infos I could try to cook something.
Regards.
Ah, forgot. I created a repo on github for this. If somebody wants to post feature requests here we go:
https://github.com/3D-I/IP-Country-Flags/issues
For those they know this MOD and used it.. and for the new ones.
Regards.