javascript - Can people who visit your website easily see your entry file if they don't have a backend password?
typecho
typecho 2017-06-22 11:54:35
0
5
750

Like this, if I put the database password in the entry file, is it safe?
If it is not safe, then how to put the generally more important information more safely?

typecho
typecho

Following the voice in heart.

reply all (5)
我想大声告诉你

No, unless I can see your source code

    女神的闺蜜爱上我

    The code is parsed on the server side and will not be exposed to the front end

      仅有的幸福

      Unless you make the file that stores the database address/user name/database name/password public, or you leak the server password and other extreme circumstances (if you don’t have any security awareness)...otherwise you won’t be able to see it.

        伊谢尔伦

        It is not safe. Writing such sensitive information in the code will risk being exposed by version control tools. It is generally better to use a separate configuration file or environment variable

          迷茫

          Don’t write your password in the code. If you submit it to a public code base, it will be seen by others. Searching for password in github will bring up a lot of information

          This password leak has no impact on your project, but it will be troublesome if it happens to be a password you often use

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!