Niushop 站点基础安全防御措施

1.将全部文件的写入权限去掉
2.将runtime 和 upload 的写入权限打开
3.配置nginx和apache 禁止 runtime 和 upload 的php执行权限
4.清理runtime缓存
5.重启nginx 或 apache

注:
1.该安全配置必定要确保 站点下的 thinkphp的远程shell漏洞已修复
2.而且检查站点下 是否有已经上传的木马文件,必定要清理干净,不清理就算配置也是无论用的。

以 linux  centos,nginx 配置为例禁止upload runtime的执行权限:
  1. location ~* /(runtime|upload)/(.*).(php)$ {
  2.                 return 403;
  3.         }
复制代码
 

 

QQ截图20190128095458.png

相关文章
相关标签/搜索