Forum Discussion

Ndlovumm's avatar
Ndlovumm
Icon for Cirrus rankCirrus
Nov 09, 2022

Script to make a resource to be available on certain times of weekdays

Hi Guys

I need help with a script to make a resource to be available on certain times of weekdays and not be accessible outside of those times. The resource can be an application or a web service hosted on the F5. Is this doable on the BIP-IP?

Thanks in advance,

  • Hi Ndlovumm,

    this can be achieved by iRules. Take a look at this example: Time based iRule example.
    You can start from this example and build an iRule that would check for the time and/or day and just reject traffic or send a HTTP response page saying something like "Sorry, application not available right now."
    If you are not familiar with iRules, feel free to ask for further assistance.

    KR
    Daniel