markei / wordpress-security-protection
安全与保护改进:登录事件历史记录、防止登录暴力破解、隐藏后端、更新状态API
v1.5.1
2023-05-07 15:02 UTC
Requires
- php: >=5.6.0
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-09-07 18:07:31 UTC
README
通过Composer安装插件
composer require markei/wordpress-security-protection
在WordPress管理后台激活插件
在wordpress/wp-config.php文件中在require_once(ABSPATH . 'wp-settings.php');之上添加以下两行
define('MARKEI_SECURITY_PROTECTION_HIDEBACKEND_URL', '/my-secret-cms');
define('MARKEI_SECURITY_PROTECTION_UPDATEINFO_SECRET', 'super-secret-key');
define('MARKEI_SECURITY_PROTECTION_BLOCKXMLRPC', true);
将/my-secret-cms替换为你喜欢的URL。**请不要**使用my-secret-cms、wp-admin或wp-login!请记得在开头提到斜杠。将super-secret-key替换为随机长值。
注销并使用您的新URL重新登录。
更新状态报告的API位于http://www.my-wordpress.tld/.markei/security-and-protection/update-state?secret=super-secret-key