Forum Discussion
hooleylist
Jan 16, 2012Cirrostratus
Hi,
If you define an address data group named allowed_clients_dg with the two IP addresses, you can use an iRule like this to block requests to a specific URI made from clients not in the data group:
when HTTP_REQUEST {
Check for requests to the restricted URI
if { [HTTP::uri] starts_with "/abc/dfg/"} {
Check if the client IP is not in the allowed clients data group
if {![class match [IP::client_addr] equals allowed_clients_dg]}{
Send a 403 response
HTTP::respond 403 content {blocked!
Aaron