F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

singhaa42162_35's avatar
singhaa42162_35
Icon for Nimbostratus rankNimbostratus
Mar 22, 2018

required i-rule

I need one requirement for i-rule

 

allow internal user (10.0.0.0/8) to uri xyz .

 

internet user should not able to access xyz but able to access xyz/abc/test

 

1 Reply

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Here's one, easy to modify:

    when HTTP_REQUEST {
        if { not ([IP::addr [IP::client_addr]/8 equals 10.0.0.0]) } {
            if { [HTTP::path] starts_with "/xyz/abc/test" } {
                 Allow through.
            } else {
                reject;
            }
        }
    }