跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Maasters Security Shield

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

Maasters Security Shield

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

描述

Maasters Security Shield provides configurable baseline hardening controls for WordPress sites. It is not a replacement for updates, backups, strong authentication, or a professional security review.

Features

  • Baseline security headers: X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy.
  • Optional HSTS on HTTPS responses, with configurable max-age and opt-in subdomain/preload directives.
  • Content Security Policy in Disabled, Report Only, or Enforce mode. Report Only is recommended for initial testing.
  • Failed-login rate limiting with configurable attempt count and lockout duration.
  • Option to disable XML-RPC authentication and remove the X-Pingback header.
  • Option to hide WordPress generator/version output.
  • Option to redirect public author-enumeration query requests.
  • Capability-protected administration and sanitized settings.

Important Notes

  • Back up your site and test on staging before enabling HSTS subdomains/preload or enforcing CSP.
  • CSP defaults are only a starting point; adapt directives for your theme, plugins, fonts, images, scripts, and third-party integrations.
  • Login attempts are grouped by the REMOTE_ADDR value. Visitors behind the same public IP can share a lockout. Forwarded proxy headers are intentionally not trusted automatically.
  • To disable the theme/plugin file editor, add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php above the stop-editing line. This plugin does not modify wp-config.php.
  • Failed-login protection uses the visitor IP address to group attempts and stores attempt counters under an IP-derived transient key in WordPress’s database or object cache. It does not send this information to an external service.
  • Security headers are emitted only when headers have not already been sent. Other server layers or plugins may also set or override headers.

安装

  1. Upload the maasters-security-shield folder to /wp-content/plugins/ or install the ZIP through Plugins > Add New > Upload Plugin.
  2. Activate the plugin.
  3. Open Maasters Shield in the WordPress admin sidebar to configure protections.
  4. Test changes on a staging site before enabling strict policies.

常见问题

Will this plugin make my site completely secure?

No. It adds configurable hardening controls but cannot replace timely updates, strong authentication, reliable backups, least-privilege access, HTTPS, or a security review.

Should I enable Content Security Policy enforcement immediately?

No. Start with Report Only, test your pages and integrations, adjust the policy, and only consider Enforce mode after confirming legitimate resources are not blocked.

When should I enable HSTS, includeSubDomains, or preload?

Enable HSTS only when your site is consistently served over HTTPS. Include subdomains only when every affected subdomain supports HTTPS. The preload directive does not itself submit your domain to browser preload lists.

Why can login protection affect multiple visitors?

Failed attempts are counted by the connecting IP address in REMOTE_ADDR. Visitors sharing a public IP address may share the same rate limit. Proxy headers are not trusted automatically because they can be spoofed unless your server is configured to validate them.

Does the plugin send data to a third party?

No. It does not send telemetry or login-failure data to an external service. Login protection stores local attempt counters using an IP-derived transient key.

How can I disable the theme and plugin file editor?

Add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php above the stop-editing line. Maasters Security Shield does not edit wp-config.php.

评价

此插件暂无评价。

贡献者及开发者

「Maasters Security Shield」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • The Maasters

帮助将「Maasters Security Shield」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.1.6

  • Added a distinct maassesh_ prefix to PHP declarations, constants, option and transient keys, settings groups, asset handles, error codes, and CSS selectors.
  • Migrated existing mss_settings options without losing saved configuration.
  • Preserved active login lockouts created with the previous transient prefix.

1.1.5

  • Added the required translators comment for the login-lockout message placeholder.
  • Updated the readme and internationalization metadata for submission.

1.1.4

  • Fixed login-lockout checks so existing authentication errors cannot bypass the rate limit.
  • Starts the configured lockout duration when the attempt threshold is reached and does not extend lockouts on each blocked retry.
  • Keeps HSTS and CSP behavior independent from the baseline header toggle.
  • Loads the admin stylesheet only on the Maasters Shield settings page.
  • Added FAQ and upgrade notice sections; improved privacy and policy documentation.

1.1.3

  • Replaced the sidebar icon with a dedicated 20 x 20 PNG asset.

1.1.2

  • Updated the sidebar icon handling and admin stylesheet rules.

1.1.1

  • Moved the plugin to a branded top-level admin menu.
  • Added the brand logo to the dashboard header.
  • Updated author-enumeration handling to use WordPress query vars.

1.1.0

  • Rebuilt the settings screen with functional security controls.
  • Added login protection settings and CSP modes.
  • Added configurable HSTS max-age with opt-in subdomain/preload directives.
  • Removed the obsolete X-XSS-Protection header and duplicate files.
  • Added settings validation and IP validation.

1.0.1

  • Initial security hardening and settings foundation.

额外信息

  • 版本 1.1.6
  • 最后更新:3 周前
  • 活跃安装数量 不到10
  • WordPress 版本 5.8 或更高版本
  • 已测试的最高版本为 7.1.5
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    hardeninglogin protectionsecuritySecurity Headersxml-rpc
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • The Maasters

支持

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

查看支持论坛

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

China 简体中文

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗