360 Publish the general PHP Protection Code, in fact, initially to help phpcms to protect the use of security, it appears to be able to join any of the loopholes in the site, take phpcmsv9 problems, the solution is as follows, other sites and so on!
1. Upload 360_safe3.php to the directory of the files to be included
2. In the page to add protection, there are two ways, according to the situation two choose one:
a). Add code to the page you want to protect
Require_once (' 360_safe3.php ');
You can do the page to prevent injection, cross station
If you want to stop the whole station, it is in a common file in the website, such as the database link file config.inc.php!
Add require_once (' 360_safe3.php ') to invoke this code
Common PHP System Add files
Phpcms V9 \phpcms\base.php
PHPWIND8.7 \data\sql_config.php
DEDECMS5.7 \data\common.inc.php
DiscuzX2 \config\config_global.php
Wordpress \wp-config.php
Metinfo \include\head.php
b). Code at the top of each file
Found in php.ini:
Automatically add files before or after any PHP document.
Auto_prepend_file = 360_safe3.php path;
-------------------------------------
360_safe3.php source files are as follows, we can refer to the following. Click to download