提高安全性的最佳 PHP.ini 设置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17944698/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:41:43  来源:igfitidea点击:

Best PHP.ini settings to improve security

phpsecurityphpinfo

提问by nish

What core php.inifile settings we need to pay much attention in terms of improving security?

在提高安全性方面我们需要注意哪些核心的php.ini文件设置?

回答by Christos Papoulas

You can begin with:

你可以开始:

http://www.cyberciti.biz/tips/php-security-best-practices-tutorial.html

http://www.cyberciti.biz/tips/php-security-best-practices-tutorial.html

it has a lot of practices to start dealing with security. This link provides several issues to start with such as:

开始处理安全问题有很多做法。此链接提供了几个问题,例如:

  1. XSS
  2. SQL injection
  3. File uploads
  4. Including local and remote files
  5. eval()
  6. Cross-site request forgery - CSRF
  1. 跨站脚本攻击
  2. SQL注入
  3. 文件上传
  4. 包括本地和远程文件
  5. 评估()
  6. 跨站请求伪造 - CSRF