广杰博客

  • 首页
  • IT资讯
  • IT运维
  1. 首页
  2. IT运维
  3. 正文

php安全

04/01/2011 1890点热度 0人点赞 0条评论

1、防止php木马执行webshell
打开safe_mode,
在php.ini中设置
disable_functions= passthru,exec,shell_exec,system
危险函数: passthru,exec,system,phpinfo,popen,chroot,scandir,chgrp,chown,
escapeshellcmd,escapeshellarg,shell_exec,proc_open,
proc_get_status
二者选一即可,也可都选
2、防止php木马读写文件目录
在php.ini中的
disable_functions= passthru,exec,shell_exec,system
后面加上php处理文件的函数
主要有
fopen,mkdir,rmdir,chmod,unlink,dir,
fopen,fread,fclose,fwrite,file_exists,
closedir,is_dir,readdir.opendir,fileperms.copy,unlink,delfile

标签: 暂无
最后更新:03/19/2017

guangjie

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

您需要 登录 之后才可以评论
最新 热点 随机
最新 热点 随机
Red Hat Enterprise Linux 9 发布,大量组件升级 windows10 家庭版添加hyper-v虚拟机组件 Red Hat Enterprise Linux 8.5 GA 发布 Rocky Linux 8.4 GA正式版发布下载 Rocky Linux 8.3 首个候选版本发布 CentOS 8.3 (2011) ISO镜像下载发布 CentOS Linux 落幕 CentOS Stream 上位 CentOS Linux 7.9 (2009) iso镜像下载 Windows 10 2020年10月更新ISO下载 ubuntu ssh通过密钥登陆服务器
IIS6解决上传下载大附件的问题 flv网页播放器代码 Fedora CoreOS 正式 GA 镜像下载 windows server 2008下任务计划不能正常执行bat批处理文件 单虚拟主机多站点设置代码 cfssl 生成kubernetes证书 OpenSUSE 11.2正式版发布并提供下载 iis6.0设置ftp隔离用户站点 CentOS 7.8 (2003) 发布镜像下载 32位x86 windows 2003支持最大的内存介绍
标签聚合
php_curl springboot nginx Hyper-V linux Windows Server 2012 android redhat
友情链接
  • linux运维
  • 郑州SEO

COPYRIGHT © 2021 gjie.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备07002435号-8