跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Limit Login Countries

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

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

Limit Login Countries

作者:Dirk Weise
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

This plugin gives you the ability to limit WordPress admin logins based on the country the visitor’s IP address is located in. It uses Maxmind’s GeoIP database which comes in a free lite version.

You can choose between a white- and blacklist mode. In whitelist mode only visitors with IP addresses from the configured countries are allowed. In blacklist mode visitors with IPs from the configured countries are not allowed to login.

Translation

So far this plugin is available in English and German. If you are interested to translate the plugin to your language, use the included POT file with a programm like PoEdit and get in touch.

Development

This plugin is developed by Dirk Weise as a pet project on GitHub. You are welcome to file an issue or send a pull request.

Credits

  • Kudos go out to the guys over at Maxmind for providing a lite version of their GeoIP database for free.
  • Same to Konstantin Kovshenin who has written a great tutorial on the WordPress Settings API which helped me a lot while cleaning up the plugin for the public.
  • Give big hands to sudar for his toolset for deploying WordPress plugins from GitHub. A must have, when developing WordPress plugins on GitHub.
  • Last but not least I send a thank you note to Gabriel Oliveira on whose work this plugin’s banner image is based.

屏幕截图

  • Whoo! The plugin’s options page.

安装

This section describes how to install the plugin and get it working.

  1. Upload the plugin to your WordPress plugin directory, which is probably /wp-content/plugins/.
  2. Download Maxmind’s current GeoLite database and extract it, e.g. to your WordPress uploads directory, which is probably /wp-content/uploads/.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Go to settings and configure the plugin

System Requirements

This plugin requires at least PHP 5.3. The minimum tested WordPress version is 3.5.0. Please report if it works in even older versions.

常见问题

HELP! I locked myself out! How do I get in again?

No worries! Just add define('LIMIT_LOGIN_COUNTRIES_OVERRIDE', TRUE); to your wp-config.php and you can login again in whichever country you are.

评价

此插件暂无评价。

贡献者及开发者

「Limit Login Countries」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Dirk Weise

帮助将「Limit Login Countries」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

Version 0.6.4

  • Hotfix for settings link showing up for all plugins in the Plugins list table.

Version 0.6.3

  • Raise tested WordPress version to 4.0.
  • Enforcing PHP 5.3 requirement now.
  • Updated bundled geoip-api-php.
  • Added settings link in the Plugins list table.
  • Refactored code to match WordPress coding style (thank you PhpStorm).

Version 0.6.2

  • Add missing changelog for 0.6.1

Version 0.6.1

  • Raise tested WordPress version.

Version 0.6

  • Public release in WordPress plugin directory.
  • Even more cleanup.

Version 0.5

  • readme.txt added.
  • and more cleanup before making the plugin public.

Version 0.4

  • Fancy JavaScript additions to options page.
  • Search for GeoIP database file added.
  • Refactoring of GeoIP access code to prepare for future changes.

Version 0.3

  • Options page added. No more hardcoded values.
  • Translation added.

Version 0.2

  • Much better design, but still a lot of hardcoded stuff.
  • Updated GeoIP API trunk.

Version 0.1

  • Initial version. ~2011. Works as intended, but it’s not very beautiful.

额外信息

  • 版本 0.6.4
  • 最后更新:12 年前
  • 活跃安装数量 40+
  • WordPress 版本 3.5.0 或更高版本
  • 已测试的最高版本为 4.0.38
  • 语言
    English (US)
  • 标签
    loginsecurity
  • 高级视图

评级

3.8 星(最高 5 星)。
  • 2 条 5 星评价 5 星 2
  • 1 条 4 星评价 4 星 1
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 1 条 1 星评价 1 星 1

Your review

查看全部评论

贡献者

  • Dirk Weise

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.