Forum Discussion
youssef1
May 31, 2018Cumulonimbus
Hi,
you can try this (simple and functional):
when CLIENT_ACCEPTED {
set START_OFF_TIME [clock scan "01:00 AM"]
set END_OFF_TIME [clock scan "05:00 AM"]
}
when HTTP_REQUEST {
set now [clock seconds]
if { ( $now > $START_OFF_TIME ) && ( $now < $END_OFF_TIME ) } {
HTTP::redirect "http://www.xyz.com/maintenancepage/"
TCP::close
}
}
Reference (Stanislas Piron): https://devcentral.f5.com/questions/irule-based-on-time-50868
Let me now if you need assistance on IT
Regards