加强您的wordpress网站安全性的13条建议

14 篇文章 0 订阅
13 篇文章 0 订阅


加强您的wordpress网站安全性的13条建议


1.运行最新版本的wordpress
2.运行最新版本的主题和插件
3.有选择性地选择插件和主题
4.移除数据库中失效的用户
5.安全配置-阻止目录列表(网站根目录下的.htacess:Options -Indexes)
6.复杂的安全键(AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, and NONCE_SALT)
7.限制访问wp-admin目录
8.禁用文件编辑
9.阻止wordpress用户名枚举(详见:
http://www.acunetix.com/blog/articles/wordpress-username-enumeration-using-http-fuzzer/
10.为所有的登录和wp-admin启用HTTPS:define('FORCE_SSL_LOGIN', true);define('FORCE_SSL_ADMIN', true);
11.限制访问插件和主题文件
# Restrict access to PHP files from plugin and theme directories
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/file/to/exclude\.php
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/directory/to/exclude/
RewriteRule wp-content/plugins/(.*\.php)$ - [R=404,L]
RewriteCond %{REQUEST_URI} !^/wp-content/themes/file/to/exclude\.php
RewriteCond %{REQUEST_URI} !^/wp-content/themes/directory/to/exclude/
RewriteRule wp-content/themes/(.*\.php)$ - [R=404,L]

12.阻止php文件的执行
<Directory "/var/www/wp-content/uploads/">
<Files "*.php">
Order Deny,Allow
Deny from All
</Files>
</Directory>

13.关掉你的debug日志:define( 'WP_DEBUG', false );


来源:https://www.acunetix.com/websitesecurity/wordpress-security-top-tips-secure-wordpress-application/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值