Forum Discussion
Vijay_E
Aug 14, 2016Cirrus
Try this:
when HTTP_REQUEST {
if {not ([IP::addr [IP::client_addr] equals x.x.x.x]) } {
if { ([class match [string tolower [HTTP::host][HTTP::uri]] contains LegalSites]) } {
HTTP::respond 401 Location "http://[HTTP::host][HTTP::uri]"
}
}
}
For serving error page, look at this devcentral link and this link.
Check this for time-based iRule execution: link text