Release Note

May 11, 2021
Darko G.

On release 3.0.7, this plugin had been equipped with WordPress-IP-Geo-API for GeoLite2 free databases becase Maxmind announced that GeoLite Legacy Downloadable Databases will be stopped updating on April 1, 2018.

But the new databases seemed not to have enough entries compared to the legacy one. And also 3.0.7 had an serious bug which made descendent scanning stopped when the API claimed that a country code was unknown, i.e. ZZ.

After releasing 3.0.8 to fix the above issue on , I have observed how many times GeoLite2 databases claimed ZZ. It still occurred but I decided to change the priority of scanning order because the day will come on next month.

Maintenance: Priority of scanning order

Now you can find “Geolite2” is placed higher than “Maxmind” which handles GeoLite Legacy DBs in “Geolocation API settings” section. It means GeoLite2 DBs would be always scanned before GeoLite Legacy’s.

Geolocation API settings

When GeoLite2 DB fails to scan a country code (i.e. ZZ), then Legacy DB is used to determine the country code. The following picture shows that Legacy DBs are used 8 times as fallbacks for the recent month.

Statistics of validation

The problem here is that those fallbacks take additional costs (e.g. time and server resource). So if you find these so frequently, please uncheck “Geolite2” in “Geolocation API settings” section.

New featuer: CIDR calculator

You can find the SOS button beside the text area for IP address and AS Number.

Help button

It pops up a CIDR calculator that is actually to convert some range of IP addresses and CIDR to each other.

CIDR calculator for IPv4/IPv6

It’s a full JavaScript program that I transplanted from the following PHP libraries.

Here, I’ll show you some examples to explain how it works to convert to each other.

Example 1

If you put the following range of IP addresses into the “Range” text area and click “” : -

you’ll get the answer in the “CIDR” text area like this :

Example 2

If you put the following 2 lines as “CIDR” and click “” :

you will get - as “Range” because includes

Example 3

If you put the following 2 lines as “Range” : - -

you will get the answer :

Then click “” to convert them back to “Range” again, you’ll get 1 line as follows : -

Example 4

If you put - into “Range”, you will get the answer like this :

In this case, you should specify as “CIDR” because it covers all the above IP addresses.

Have fun! emoji .

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2024 - IP Location Block by IDEOLOGIX Media