xss根据白名单过滤HTML防止XSS攻击

上传者: 39841848 | 上传时间: 2021-07-20 02:09:49 | 文件大小: 103KB | 文件类型: ZIP
xss是一个用于对用户输入的内容进行过滤,以避免遭受XSS攻击的模块 (什么是XSS攻击?)。主要用于论坛、博客、网上商店等等一些可允许用户录入页面排版、 格式控制相关的HTML的场景,xss模块通过白名单来控制允许的标签及相关的标签属性。

文件下载

资源详情

[{"title":"( 40 个子文件 103KB ) xss根据白名单过滤HTML防止XSS攻击","children":[{"title":"js-xss-master","children":[{"title":".coveralls.yml <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 458B </span>","children":null,"spread":false}],"spread":true},{"title":"AUTHORS <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"bower.json <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"parser.js <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"default.js <span style='color:#111;'> 9.55KB </span>","children":null,"spread":false},{"title":"xss.js <span style='color:#111;'> 5.26KB </span>","children":null,"spread":false},{"title":"util.js <span style='color:#111;'> 761B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"cli.js <span style='color:#111;'> 840B </span>","children":null,"spread":false}],"spread":true},{"title":"benchmark","children":[{"title":"vs_validator.js <span style='color:#111;'> 547B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"file.html <span style='color:#111;'> 106.95KB </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 106B </span>","children":null,"spread":false},{"title":"example","children":[{"title":"web.html <span style='color:#111;'> 423B </span>","children":null,"spread":false},{"title":"strip_tag.js <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"analyse_img_list.js <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"webworker.html <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"allows_tag_prefix.js <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"worker.js <span style='color:#111;'> 109B </span>","children":null,"spread":false},{"title":"allows_attr_prefix.js <span style='color:#111;'> 656B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test_html_parser.js <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"test_custom_method.js <span style='color:#111;'> 10.76KB </span>","children":null,"spread":false},{"title":"test_xss.js <span style='color:#111;'> 13.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 12.93KB </span>","children":null,"spread":false},{"title":"typings","children":[{"title":"xss.d.ts <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false},{"title":"xss-other-tests.ts <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"xss-tests.ts <span style='color:#111;'> 967B </span>","children":null,"spread":false}],"spread":true},{"title":"dist","children":[{"title":"xss.min.js <span style='color:#111;'> 28.25KB </span>","children":null,"spread":false},{"title":"xss.js <span style='color:#111;'> 48.90KB </span>","children":null,"spread":false},{"title":"test.html <span style='color:#111;'> 328B </span>","children":null,"spread":false}],"spread":true},{"title":"README.zh.md <span style='color:#111;'> 13.53KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"xss <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"bower_register.cmd <span style='color:#111;'> 56B </span>","children":null,"spread":false},{"title":"build <span style='color:#111;'> 411B </span>","children":null,"spread":false}],"spread":false},{"title":"package-lock.json <span style='color:#111;'> 88.09KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明