---
title: "记录一下Velocity防Xss攻击"
author: "hellohank"
date: "2016-07-19T10:42:12Z"
tags: []
categories: ["Web前端"]
slug: "velocity-xss"
draft: false
lastmod: "2016-07-21T10:05:27Z"
id: 2312111
url: "https://hellohank.iteye.com/blog/2312111"
---

Velocity有好几种防Xss攻击的方式，个人认为这是在“url的参数在页面中回显”情形下比较好的方式。最近记性不太好，防止忘记，还是记录保存一下。