【介绍】
官网:https://premium.wpmudev.org/project/wp-defender/
文档:https://premium.wpmudev.org/docs/wpmu-dev-plugins/defender/
特性:
分析站点安全性
安全调整建议
一键解决事情
手动/自动屏蔽IP
可以过滤的IP日志
扫描内核文件是否被改动
Google两步验证工具
自定义两步验证邮件
漏洞扫描
定时扫描
修复/恢复已被改动的文件
自定义所需扫描的文件类型
根据文件大小跳过文件
邮件发送报告
设置报告发送对象
Google黑名单监控
自动备份
整站备份
云端备份
站点日志
【排错】
报错:defender_lockout’ doesn’t exist
在日志中,出现大量报错:
2019/10/12 19:09:51 [error] 1804#0: *7381 FastCGI sent in stderr: "PHP message: WordPress数据库查询SELECT id, ip, status, lockout_message, release_time, lock_time, lock_time_404, attempt, attempt_404, meta FROM wp_defender_lockout WHERE ip = '66.66.66.66' LIMIT 0,1时发生Table 'wordpress.wp_defender_lockout' doesn't exist错误,这是由require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WD_Main_Activator->init, WP_Defender\Module\IP_Lockout->__construct, WP_Defender\Module\IP_Lockout\Controller\Main->__construct, WP_Defender\Module\IP_Lockout\Controller\Main->maybeLockouts, Hammer\Base\DB_Model::findOne查询的" while reading response header from upstream, client: 66.66.66.66, server: , request: "GET /lilina HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
参考:https://premium.wpmudev.org/forums/topic/db-error-for-defender-pro/
方法:手工添加2个表
CREATE TABLE IF NOT EXISTS `wp_defender_lockout` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `ip` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `status` varchar(16) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `lockout_message` text COLLATE utf8mb4_unicode_520_ci, `release_time` int(11) DEFAULT NULL, `lock_time` int(11) DEFAULT NULL, `lock_time_404` int(11) DEFAULT NULL, `attempt` int(11) DEFAULT NULL, `attempt_404` int(11) DEFAULT NULL, `meta` text COLLATE utf8mb4_unicode_520_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci CREATE TABLE IF NOT EXISTS `wp_defender_lockout_log` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `log` text COLLATE utf8mb4_unicode_520_ci, `ip` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `date` int(11) DEFAULT NULL, `type` varchar(16) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `user_agent` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `blog_id` int(11) DEFAULT NULL, `tried` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci