广杰博客

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

php安全

04/01/2011 1768点热度 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通过密钥登陆服务器
一些常用的linux系统命令 Windows 7第一个零日漏洞已经被黑客发现 Linux Kernel 3.5 正式发布 imail日志中status的状态说明 一个不错的centos学习网站 windows 2003 IIS网站间歇性出现"该页无法显示"错误 linux下JDK和tomcat配置 Serv-U 8.0.0.7 Java三种常见异常及解决 win7 点计算机 管理 出现 该文件没有与之关联的程序来执行该操作
标签聚合
php_curl android redhat Hyper-V nginx Windows Server 2012 springboot linux
友情链接
  • linux运维
  • 郑州SEO

COPYRIGHT © 2021 gjie.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备07002435号-8