By viewing the html source code, you can see the file and path. how to protect the core file, such as config. php?

Source: Internet
Author: User
By viewing the html source code, you can see the file and path, and how to protect the core file, such as config. php allows you to view source files in a browser. all the program paths I wrote are exposed. if you download a config file. php is also very simple. Once downloaded, we can see the database username and password. how can we protect it ?? ------ Solution ------------------ do not place these files in a directory that can be accessed by http. Put it in a file that is inaccessible to a user. view the html source code to view the file and path. how to protect core files such as config. php
Open the browser to view the source file. all the program paths I wrote are exposed. if you download a config file. php is also very simple. Once downloaded, we can see the database username and password. how can we protect it ??

------ Solution --------------------
Do not place these files in a directory that can be accessed by http. Put it in a directory that users cannot access, and configure the include path of your php. ini.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.