Forum Discussion
Yozzer
Mar 07, 2012Nimbostratus
XSS checks in irule
Hi
Can an irule check for special chars in a switch statement?
switch -glob [URI::decode [URI::query "?[HTTP::payload]" Param1]] {
"*<" {
set variable "x...
Yozzer
Mar 12, 2012Nimbostratus
This seemed to solve the null byte issue and simplified my irule checks:
if { [matchclass [string tolower [HTTP::payload]] contains xssblocked] }{
HTTP::respond 403 "Blocked"
Would just like to count the number of times the & char appears in the payload and throw an exception if there is more than 1 found. Any ideas?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects