Forum Discussion
4 Replies
Sort By
- Kevin_StewartEmployeeNot sure if you mean based on client time zone or time of day. But if the latter, here's a little code that checks if a request is being made before or after a predefined set of times:
when RULE_INIT { set static::not_before_time "10am today" set static::not_after_time "5pm today" } when HTTP_REQUEST { if { ( [expr [clock seconds] < [clock scan $static::not_before_time]] ) or ( [expr [clock seconds] > [clock scan $static::not_after_time]] ) } { HTTP::respond 200 content "After hours - access disabled" "Connection" "Close" } }
- Lingaraj_55273NimbostratusHi Kevin Stewart ,
- Pascal_Tene_910Historic F5 AccountNot an answer, but just a pointer.
- nitassEmployeeconnection rate limit