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 ??, Do not place these files in a directory that can be accessed by http. Put it to one. you can view the file and path by viewing the html source code. how to protect the core file, 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.
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.