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.