跳到内容

IP Whitelist

v1.1.0

Awesoft · 2025年1月24日 上架

Restrict the WordPress admin area and login page to trusted IP addresses and ranges (IPv4, IPv6 and CIDR).

正在使用
60+
评分
暂无
累计下载
1,574
最近更新
2026年10月11日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The IP Whitelist entry under the Settings menu.
The IP Whitelist entry under the Settings menu.
The settings page with the detected IP address, allowed addresses and proxy header options.
The settings page with the detected IP address, allowed addresses and proxy header options.
What a blocked visitor sees when trying to open the admin area.
What a blocked visitor sees when trying to open the admin area.
IP Whitelist

IP Whitelist lets administrators limit access to the WordPress dashboard and login page to a list of trusted IP addresses. Any visitor whose address is not on the list receives a 403 “Access Denied” response, which keeps brute-force bots and curious strangers away from /wp-admin and /wp-login.php without touching the public site.

Features

  • Protects /wp-admin and /wp-login.php; the login protection can be switched off separately.
  • Accepts single IPv4 and IPv6 addresses and CIDR ranges such as 203.0.113.0/24 or 2001:db8::/32.
  • Optional comments after # on each line so you can label entries.
  • Shows the IP address WordPress sees for you, with a one-click “Add to list” button.
  • Lock-out guard: the whitelist refuses to enable itself if your own address is not on the list.
  • Choose where the visitor IP comes from: the connection address (default) or the X-Forwarded-For, X-Real-IP or CF-Connecting-IP header when the site runs behind a proxy, load balancer or Cloudflare. Headers are never trusted unless you select them.
  • Customisable access-denied message.
  • Public site features keep working: AJAX (admin-ajax.php), cron, WP-CLI, front-end admin-post.php submissions and password-protected post forms are not blocked.
  • Emergency bypass: define AWESOFT_IP_WHITELIST_DISABLE in wp-config.php to switch the whitelist off without database access.
  • awesoft_ip_whitelist_allowed filter for developers who need custom allow rules.
  • Removes all of its options when the plugin is deleted.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums