Forum Discussion

Vova_1985_18320's avatar
Vova_1985_18320
Icon for Nimbostratus rankNimbostratus
May 28, 2015

iRule based on domain

Hi im looking for a way to accept traffic with * expression, is it possible?

 when HTTP_REQUEST {
     if { [string tolower [HTTP::host]] eq "*.example.com*"} {
          pool $HTTP_pool 
    } else {
    HTTP::respond 403  
    }
}