Forum Discussion
swabbies_112156
Jan 24, 2012Nimbostratus
Relational class or tables
We are running v9.4.8.
I am looking to create a relation based class, not sure if this is a function of a table in v10.
the relation is that I want a way to evaluate...
swabbies_112156
Jan 31, 2012Nimbostratus
Still need a bit of clarification on this.
b class test_penaltybox '{
"testuser1 command1"
"testuser1 command2"
"testuser2 commnad1"
}'
http://domain-name.com/?uid=testuser1&command=command1 should match
http://domain-name.com/?uid=testuser1&command=command2 should match
http://domain-name.com/?uid=testuser2&command=command1 should match
http://domain-name.com/?uid=testuser2&command=command2 should not match
if {[matchclass [string tolower [HTTP::uri]] contains [getfield $::bentest_penaltybox] ":" 1 ]} {
pool $penaltyboxpool
}
I can't get the syntax correct to work. Also I want to expand it so that URI contains both "1" and "2" or "testuser1" and "command1", but not if it only has one of the two.
Can getfield be applied to a class, or can it only be applied to a URI?
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