Advanced iRules: Regular Expressions
A regular expression or regex for short is essentially a string that is used to describe or match a set of strings, according to certain syntax rules.
Regular expressions ("REs") come in two basic ...
Updated Oct 02, 2023
Version 3.0JRahm
Admin
Joined January 20, 2005
Abu_Bakar_Afzal
May 18, 2022Altostratus
How to write an iRule for ASM to allow a URL having a string which is everytime different. Like example.com/233.a7e26a504b20a18a6675.js a7e26a504b20a18a6675 will be changed everytime. Below is the rule where I write an expression to allow but i am not sure about it will pass or still prompt illegal URL. I cannot test in production environment.
when HTTP_REQUEST {
if { [HTTP::path] matches_regex {233\.\w{20}\.js} } then { pool HTTP_Pool}
}