Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

WP Cloudflare GeoIP Redirect

Описание

WP Cloudflare GeoIP Redirect plugin enables you to setup redirect for users from selected countries to specific URL.

Геолокация выполняется с использованием данных Cloudflare IP Geolocation.

Redirection is done using the php header() function and you can choose Temporary Redirect (307) or Moved Permanently (301).

Чтобы использовать этот плагин, вам необходимо настроить Cloudflare для своего веб-сайта и включить службу IP-геолокации Cloudflare. Подробнее в FAQ.

Скриншоты

  • Базовая настройка для перенаправления одной страны
  • Setup for redirecting users from multiple countries to same URL

Установка

  1. Upload the plugin files to the /wp-content/plugins/wp-cloudflare-geoip-redirect directory, or install the plugin through the WordPress plugins screen directly.
  2. Активируйте плагин на странице «Плагины» в WordPress
  3. Use the CF Redirect>Options screen to configure the plugin

Часто задаваемые вопросы

Нужна ли мне учетная запись Cloudflare для использования плагина?

You don’t need CloudFlare account credentials for using plugin but you do need to have Cloudflare service active on your domain in order for plugin to get Geolocation user data and enabled Cloudflare IP Geolocation.

Как включить IP-геолокацию Cloudflare

Для получения информации о том, как настроить Cloudflare IP Geolocation, перейдите по ссылке: https://support.cloudflare.com/hc/en-us/articles/200168236-Configuring-Cloudflare-IP-Geolocation

Будет ли этот плагин работать с другими плагинами кэширования?

Frankly we don’t know yet. As of v1.3 new HTTP header is added when redirection is enabled (Cache-Control: no-cache, no-store, must-revalidate) but it’s on cache plugin to honor this setting

Обход плагина LiteSpeed Cache, если перенаправление не работает

This issue is fixed by adding new rule to your .htaccess file before ## LITESPEED WP CACHE PLUGIN section

RewriteEngine On
RewriteRule .* — [E=Cache-Control:vary=%{HTTP:CF-IPCountry}]

You can read more about it here https://wordpress.org/support/topic/wp_redirect-not-working-with-litespeed-cache-on/#post-14280128

Отзывы

22.04.2021
Very appreciated to the developer for his plugin and support! This is the the best free solution for wp + Cloudflare with such functionality. The upcoming update comes with new mega features! Very recommend! Try by yourself, you'll get what I mean. All preferences are user-friendly, the plugin is lightweight with high code quality. Thank you so much!!!
06.04.2021
I tried a couple of redirect plugins but this was the only one that worked as expected. Tech support is superb cause they made it work perfectly in a multisite and LSCache enabled. Thank you so much for everything
22.01.2021 1 ответ
Plain and simple. CloudFlare IP Geolocation enabled. Plugin set up and settings saved. Country detected correctly and displayed on plugin settings page. Redirection not happening (no matter whether it's 307 or 301). Shame. Will have to do it by hand in .htaccess
Посмотреть все 6 отзывов

Участники и разработчики

«WP Cloudflare GeoIP Redirect» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«WP Cloudflare GeoIP Redirect» переведён на 2 языка. Благодарим переводчиков за их работу.

Перевести «WP Cloudflare GeoIP Redirect» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.4

  • option to add custom Query string parameter name and value to current URL based on redirect settings

1.3

  • исправлена проблема с циклом перенаправления, когда URL-адрес веб-сайта совпадает с URL-адресом перенаправления
  • added HTTP header «Cache-Control: no-cache, no-store, must-revalidate»
  • after working with «LiteSpeed Cache» to fix the issues with redirect not working when caching is enabled workaround is added to FAQ

1.2

  • изменен код перенаправления для использования «wp_redirect»

1.1

  • Добавлен фреймворк CMB2 для опций плагина

1.0

  • Первая версия