Reu
Reu

Reputation: 1287

Request based intrusion detection in Tomcat

I'm wondering if there is a way to push tomcat requests through a custom class easily (e.g without having to heavily modify the codebase) to do things like running a regex to check for XSS and SQL Injection attacks and deny them/sanitize them based on this knowledge.

Thanks

Upvotes: 1

Views: 486

Answers (1)

duffymo
duffymo

Reputation: 308928

Of course - use a Filter:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=java+xss+filter http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=java+servlet+filter

Upvotes: 2

Related Questions