Forum Discussion
Snl
Feb 15, 2017Cirrostratus
use this a sample irule
1)Create Data group list as allowed-host and added the IP x.x.x.x/32
2) created below irule and called the data group list allowed-host
use string as equal or contain based on uri requirement
Code
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] ends_with "/web/svc.html" ) } {
if { not ( [class match [IP::client_addr] equals allowed-host] )
}
{
reject } } }