Forum Discussion
Stanislas_Piro2
Feb 02, 2017Cumulonimbus
Hi,
AFM irule can be used like that:
create a Standard VS with HTTP profile enabled, then enable this irule to disable HTTP profile for non HTTP services
when CLIENT_ACCEPTED {
if {[TCP::local_port] equals 80} {
HTTP::enable
} else {
HTTP::disable
}
}
then, in AFM rule, you can display a HTTP blocking page with irule :
when HTTP_REQUEST {
HTTP::respond 200 content {
Dropped
Your request is dropped
} noserver
}