Forum Discussion
Hannes_Rapp
Dec 01, 2016Nimbostratus
Hello,
You should really use an LTM Data-group (Local Traffic -> iRules -> Data-group List) for the purpose. Assuming you go for the iRule I posted, you should additionally create a data-group named 'dg_trusted_ip' (network type) and add the trusted IP-addresses and address ranges into that data group.
The iRule itself below:
when HTTP_REQUEST {
if { ([string tolower [HTTP::path]] starts_with "/admin") && ([class match [IP::client_addr] ne "dg_trusted_ip"]) }{
drop
}
}