Using IPGP Geolocation, you can redirect users in specific countries to another URL. You can add different redirect rules that applies to different countries and different URLs.
After installation, go to IPGP Geolocation menu in your wordpress administration panel. There you can select which countries you want to apply the redirection for, and set a redirection URL. Add the rule and it is done.
To get the user location, the data is send to IPGP Geolocation API, located at: http://www.ipgp.net/geo/country.php . The API is free for fair usage. There is no private data sent to any external server. The data exchanged between the plugin and the API are: your visitor IP Address without other details about the visitor, and API key to be identified on the server and your website URL. The data sent back by the API contains the visitor country code, country name.
When the plugin is activated, an API key is requested from the API website. The data sent to the API servers contains the current time, and a public number to make sure that the API key is requested by the plugin. The data sent back contains the API key, a secret key for authentication and the number of queries allowed for fair usage. Fair usage consist in 20,000 queries per month. This number is subject to change based on the load on our servers.
This section describes how to install the plugin and get it working.
- Upload the plugin to the
/wp-content/plugins/directory or download it directly from your administration panel.
- Gaitu plugina WordPress-eko ‘Pluginak’ menutik
- Go to IPGP Geolocation menu in your wordpress administration panel to add rewrite rules
- Select the countries from the drop-down list and click add. You can do this for multiple countries.
- Add the URL where you want visitors from that country to be redirected and click to add rule.
- Now, visitors coming from that country will be redirected to your specified URL
How the plugin works ?
The plugin use the visitor IP Address to get Geolocation data from an external server.
Laguntzaileak eta Garatzaileak
“IPGP Geolocation” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin honi.Laguntzaileak
- Fixed warning on redirection rules display
- Tested and updated to work with WordPress 5.7.2
- Tested and updated to work with WordPress 5.4.2
- Tested and updated to work with WordPress 5.3.2
- Fixed apikey generation issues and cleared a notice appearing
- Fixed few errors causing notices
- Fixed issue with url encoding and cleared some notices
- Fixed textdomain function bug
- Sorted country list
- If only one country is set, there is no need to click “add” button
- If no redirection rules are set, then the plugin does nothing on page load
- This is the first version of the plugin