hb.wind

  • 文章
  • 技术栈
  • 联系我
  • 工具

hb.wind

discuz安全性设置

2014-07-17

nginx 禁止某些目录执行php

location ~ /(template|attachment|upload)/.*\.(php|php5|PHP|PHP5)?$ {
deny all;
}

在静态文件目录,如mov|center|static|zone|jkb|000|a_img
查找有没有莫名其妙的php文件

find ./ -name "*.php"

需要禁用的函数

disable_functions = phpinfo,eval,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen

©2019 Powered by Aiddit.com | Theme – hb.wind | 鄂ICP备18029942号-2
Top