Forum Discussion
Shay_Ben-David1
Nimbostratus
Oct 25, 2006phishing irule
does anyone knows why i get error on line 1 & 12 on this irule?
it says missing brackets, but seems to be ok ?
class valid_referers {
"http://mydomain.com"
}
...
Deb_Allen_18
Oct 25, 2006Historic F5 Account
The "class" portions need to be defined outside the rule itself as Data Group Lists with the names indicated in the "class" statement.
class valid_referers {
"http://mydomain.com"
}
class file_types {
".gif"
".jpg"
".png"
}
The rest of the text is the actual iRule. To enter the iRule in the GUI, you will cut & paste all but the first & last lines into the "Definition" dialog box. The GUI will add the "rule name {" line as well as the trailing "}". (In other words, the first line of the iRule will be "when HTTP_REQUEST", and the iRule will end with 2 "}" rather than 3.)HTH
/deb
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