Forum Discussion
Randy_Johnson_L
Nimbostratus
Jul 19, 2017Temporarily block IP address -
We've been pretty successful blocking rogue players using a DataGroup and a simple iRule. However, now the goal is to populate this DataGroup dynamically, blocking and unblocking on a schedule, or ti...
Lee_Sutcliffe
Nacreous
Jul 20, 2017Simple example, but you could do something like this to define your schedule. Needless to say, if you want a more complicated schedule you'd need to have more complicated conditions e.g. $curTime is greater than timeA and less than timeB
set curTime "[clock format [clock seconds] -format %H%M%S]"
set pm 120000
if { $curTime < $pm } {
It's AM - Do something
} elseif { $curTime > $pm } {
It's PM - Do something
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
