Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Ganesh_Sanap_23's avatar
Ganesh_Sanap_23
Icon for Nimbostratus rankNimbostratus
Apr 21, 2019

irule for uri while accessing from internet

Hello,

 

I am trying to achieve an irule while accessing url from internet is not allowed but after using uri part it should allowed. for eg. I have url https://abc.com which should be block from but when try https://abc.com/xyz/def/ghi/ should be allowed.

 

1 Reply

  • Hi Guy,

    if you want to only allow urls starting with a specific path, use this:
    when HTTP_REQUEST {
    if { not ([string tolower [HTTP::uri]] starts_with "/xyz/def/ghi/") }
    {
        log local0. "Dropped: client:[IP::client_addr] uri:[HTTP::uri]"
        drop
    }
    }