PHP防xss的图书馆
2016-08-23
1 0 0
暂无评分
其他
如何获取积分?
Description
PHP Anti-XSS Library developing for prevent the XSS(Cross Site Scripting) vulnerabilities on the web applications. PHP Anti-XSS Library automatically detect the encoding of the data that you want filter and if you wish its encoding your data again. Also there are 3 type of filtering option.
Filter Options
- Blacklist Filtering: Compares the data with a blacklist that you specify.
- Whitelist Filtering: In the case of a data that does not conform to the type of data you've specified that does not allow the use of the data.
- Data Types: "number", "string", "everything" and "default" (only number and string)
- Graylist Filtering: Both methods are used together.
Usage
- Example 1: Setting the encoding of the data
Ex1:
$data = AntiXSS::setEncoding($data, "UTF-8");
* Example
php
图书馆
xss
相关源码推荐
基于Thinkphp6+Element的插件化管理系统,网站、小程序、商城、CMS、APP、ERP、
0
0
暂无评分
php统计
0
0
暂无评分
学生作业成绩管理系统V1
0
0
暂无评分
PHP系统后台
0
0
暂无评分
php+mysql 学生登录注册重置功能
0
0
暂无评分
暂无评论