Forum Discussion
Mayur_Sutare
Jun 04, 2020MVP
Hello,
First create one DataGroup list of IP addresses to be allowed and map it under Below iRule.
when HTTP_REQUEST {
if {[HTTP::uri] eq "/iauthtoken"}
{
if {not ([class match [IP::client_addr] equals Allow-List])} {
HTTP::respond 403 content "<html><body>Access not permitted</body></html>" Connection Close
TCP::close
}
}
}
Above iRule will allow access to mentioned URI from addresses which are part of Allow-List data group. Rest traffic should work w/o any issue.
Hope it works!
Mayur