Forum Discussion

rosarra's avatar
rosarra
Icon for Altocumulus rankAltocumulus
Dec 16, 2023

multiple uri's check within a string

I need an irule that checks for the presence of a set of multiple uri's within a string.

Something like this: If ([HTTP::host] eq aaa.xxx.com) and not (([HTTP::uri] eq "/index.html") or ([HTTP::uri] eq "/image.png") or ([HTTP::uri] eq "/image_341.png") or ([HTTP::uri] eq "/image_3.png") or ([HTTP::uri] eq "/image_6.png")) then HTTP::uri "/index.html

is there a method that is not so complicated? my need is to force users to access only one page (that contains multiple images) of a VS.