a better approach than storing mysql password in plain text in config file?

前端 未结 8 2029
说谎
说谎 2020-11-29 00:26

It\'s always bothered me that many PHP programs require the user to store the mysql password in plain text (in a string or constant) in a configuration file in the applicati

相关标签:
8条回答
  • 2020-11-29 01:13

    Keeping your config files outside of your document root is a popular way of improving the security of config files.

    0 讨论(0)
  • 2020-11-29 01:13

    It does not have to be in the webroot. You can move the file outside of the webroot and call it that way. This will just mean the file cannot be called directly from the web.

    If your code has security flaws in it, such as including stuff without filtering from GET data, then that file is still at risk. The real key is making sure your application is secure as well.

    0 讨论(0)
提交回复
热议问题