Forum Discussion
LyonsG_85618
Dec 06, 2012Cirrostratus
IRULE to block URI after a specific date
I have been asked to create VIP to route traffic through to a test web server.
What the customer want is a test URI that has an expiry date. The date will then be verified aganist the current da...
hooleylist
Dec 06, 2012Cirrostratus
Hi Graham,
This should be doable, but keep in mind that the logic of the iRule could be bypassed:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=30900&ptarget=30901
Basically, you could use [class match -value [HTTP::uri] starts_with uri_to_date_dg] to get the "expire date" and then check if the current date ([clock format [clock seconds] -format "%d%m%Y ) is earlier.
https://devcentral.f5.com/wiki/iRules.class.ashx
http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm
Aaron
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