version : v1.1
Update time : 2013-05-25
what 's new: Optimizing Performance
function Description :
can effectively protect xss,sql injection, code execution, file inclusion and many other high-risk vulnerabilities.
How to use:
- Upload waf.php to the directory of files to include
- To add protection to the page, there are two ways to do this, depending on the situation two:
a). Page anti-injection, cross-site, add code
to the page you need to protect
Copy Code
- Require_once (' waf.php ');
If you want to prevent the whole station, in a common file in the site, such as the database link file config.inc.php, to invoke this code. Frequently used PHP system to 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). At the top of each file, add the code as follows: Find the Auto_prepent_file in php.ini and modify it to:
Copy Code
- Automatically add files before or after any PHP document;
- Auto_prepend_file = waf.php path;
Patch File Download Link:
:
PHP Code patch php_patch.zip (3 K)
ASP code patch Asp.zip (2 K)
Bill: PHP protection Xss,sql, code execution, file inclusion, and many other high-risk vulnerabilities