该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

country-redirect

描述

The plugin very useful for companies (such as Alfa Romeo, Bosch, Biir, Siemens) and blogs who have different web-sites for not logged in visitors from different countries.
It creates Settings page named Country Redirect in the WordPress’s admin section where it is possible to point redirect for any country in the world. And when unauthorized visitor visits the frontend site, this visit will be redirected to URL matched the country he visits from with the WordPress default 302 status.
The aim of plugin is reliable country recognition of both desktop and mobile visitors using three independent determining engines based on visitor’s IP.
The using of plugin is pretty simple and does not require of any special or programming skills.

If you have any suggestions or need some special function, please let me know.

Translations

  • English – default
  • Ukrainian: Українська

屏幕截图

  • The screenshot shows country recognition engine settings. You can see at the screenshot, that by default, remote ip-api service is turned off, but if you use the plugin for non commercial purposes you can turn it on. More information at https://ip-api.com/
  • The screenshot shows redirection settings
  • The screenshot shows whitelist settings

安装

  1. Upload the plugin into the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Country Redirect to configure the plugin

常见问题

Whom will useful this plugin to

The plugin very useful for companies (such as Alfa Romeo, Bosch, Biir, Siemens) and blogs who have different web-sites for not logged in visitors from different countries.

What is plugin exactly do

The plugin creates Settings page named Country Redirect in the WordPress’s admin section where it is possible to point redirect for any country in the world.

When unauthorized visitor visits the frontend site, this visit will be redirected to URL matched the country he visits from with the WordPress default 302 status.

This plugin does not store any data.

Has the country determination reliable

Both desktop and mobile visitors should be determined correctly using three independent determining engines based on visitor’s IP.

Does the plugin uses any 3rd party service

Yes. The plugin uses three independent 3rd party services for determine visitor’s country by IP:
First service is “Sypex Geo”. It’s free for using both commercial and non commercial purposes. More at https://sypexgeo.net/ru/faq/
Second service is “GeoLite2 Free”. It’s distributed under the Creative Commons Attribution-ShareAlike 4.0 International License. More at https://dev.maxmind.com/geoip/geoip2/geolite2/. This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
Third service is “ip-api”. This is online service and it’s free for non commercial using only. By default, it switched off when plugin activated. More at https://ip-api.com/

Does it need special skills for using

The using of plugin does not require of any special or programming skills.

If I need something special

Everybody who wants to improve the plugin or to suggest some features are welcome.

评价

2021 年 9 月 24 日
In my case I need to redirect multiple URL, for example https://website.com/anypage/ to https://anotherwebsite.net/anypage/ This plugin only redirects to 1 URL, if you add that option I would definitely use it and give it a 5 star rating
2020 年 10 月 7 日
Perfect example of a narrow-use plugin that does a single task extremely well, without padding it out with lots of fluff. Like one of the other reviewers, I’d been struggling with a more well known and well used GEO redirection plugin with no luck. This one worked first time.
2020 年 6 月 4 日
I was having trouble with a better known redirection plugin so I tried this one and had it up and running in seconds. Brilliant!
阅读所有5条评价

贡献者及开发者

“country-redirect” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“country-redirect”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.3

  • add bot recognition by User Agent substring
  • Update SxGeo database to 2021-12-19
  • Update GeoIP database to 2021-12-21

1.3.2

  • Correct SxGeo.php to meet PHP7.4 requirements
  • Update SxGeo database to 2021-04-30
  • Update GeoIP database to 2021-05-11

1.3.1

  • Change updating algorithm to avoid using WordPress’s action upgrader_process_complete.
    Please, check your bot whitelist settings carefully.

1.3

  • Add interface tab for whitelist settings
  • Eliminate strict settings for redirect to different domain zones
  • Update local IP databases

1.2

  • Add whitelist IPs for Yandex bot and loading speed services
  • Bug fixes
  • Performance improvement

1.1

  • Add whitelist IPs for Alexa, Bing, DuckDuck, Google, Yandex
  • Update databases

1.0

  • The first release of the plugin