Forum Discussion

singhaa42162_35's avatar
singhaa42162_35
Icon for Nimbostratus rankNimbostratus
Mar 23, 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

 

  • 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;
            }
        }
    }