Linux 软件免费装
Banner图

WP Cloudflare GeoIP Redirect

开发者 webinvaders
更新时间 2021年4月23日 05:22
捐献地址: 去捐款
PHP版本: 5.2.4 及以上
WordPress版本: 5.7
版权: GPLv2 or later
版权网址: 版权信息

标签

redirect geolocation geoip cloudflare

下载

详情介绍:

WP Cloudflare GeoIP Redirect plugin enables you to setup redirect for users from selected countries to specific URL. Geolocation is done using Cloudflare IP Geolocation data. Redirection is done using the php header() function and you can choose Temporary Redirect (307) or Moved Permanently (301). In order to use this plugin you need to setup Cloudflare for your website and enable Cloudflare IP Geolocation service. More info in FAQ.

安装:

  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. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the CF Redirect>Options screen to configure the plugin

屏幕截图:

  • Basic setup for one country redirect
  • Setup for redirecting users from multiple countries to same URL

升级注意事项:

1.0 Enjoy using WP Cloudflare GeoIP Redirect

常见问题:

Do I need a Cloudflare account to use the plugin?

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.

How to enable Cloudflare IP Geolocation

For info on how to configure Cloudflare IP Geolocation follow the link: https://support.cloudflare.com/hc/en-us/articles/200168236-Configuring-Cloudflare-IP-Geolocation

Will this plugin work with other Caching plugins?

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 plugin workaround if redirection is not working

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

更新日志:

1.4 1.3 1.2 1.1 1.0