Plugin that utilizes ip-api to get geolocation coordinates based on IP address.
Upload the plugin files to the wp-content plugins shif8-geoip directory, or install the plugin through WordPress plugins screen directly..
Activate the plugin through 'Plugins screen WordPress.
The plugin will set the cookie after geolocation and encrypt the value using OpenSSL with wp salt as key.
Well the data could be construed as somewhat sensitive and could be used to place the user.
The decision to encrypt the data was made to protect the user from the data falling into the wrong hands.
In the plugin code, we are using OpenSSL to encrypt decrypt the data.
Function to decrypt function shift8 geoip decrypt { if && empty ) { list = explode, 2 ) return openssl decrypt } else { return false } }.
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
If no IP is found in the function, the last return value still needs to be chcecked if IP, otherwise return false. 1.05.
Read more