Thanushka_Wije1
Feb 10, 2018Nimbostratus
Http header
Hi
There is a requirment to write an iRule for below
To capture HTTP header of each request and only allow them if it has valid DNS header host section
Will below work?
Data-Group
class Valid_DNS { "abc.com" "efg.com" }
when HTTP_REQUEST { if { [matchclass [HTTP::host] equals $::Valid_DNS] } {
return } else{ reject } }