Forum Discussion
Emad_26973
Nov 27, 2018Cirrus
Another Approach will be to add all virtual server IPs in a data group and write a generic irule to deny request, you can either reject or send HTML having access denied message e.g
ltm rule fqdn_access {
when HTTP_REQUEST {
if {[class match [HTTP::host] equals VIP_IPs] }{
HTTP::respond 200 content {
Access Denied
We are sorry. Use FQDN to access.
}
}
}
}
DataGroup
ltm data-group internal VIP_IPs {
records {
33.33.33.33 { }
33.33.33.34 { }
}
type string
}
- NGX_IT_134965Nov 28, 2018Nimbostratus
Thank you very much everyone, the first one worked great for me :).