M451_315544
Mar 28, 2017Cirrus
Create iRule to prevent external users from hitting directories
Hello all.
I am new to iRules and I am not sure how to test what I've done so far without impacting production so I thought I'd ask here first to review my logic.
Logic- Create an iRule to disable some sub-directories from external IPs
Sud-directory examples /aws/ /PP/
What I've come up with.
Comment - subDir is defined in the GUI under Data Groups
when HTTP_REQUEST { if { (![class match [IP::remote_addr] equals private_net]) and [class match [ [HTTP::uri]] equals subDir ]} { drop }
}
I am thinking that I should use "equals" and probably use "contains" Thoughts?