Forum Discussion
Thanushka_Wije1
Nimbostratus
Feb 10, 2018Http 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-Gro...
Feb 10, 2018
Like I said earlier the syntax has changed. This also applies to the use of external classes. In your case, create a datagroup Valid_DNS via the WebUI. And use an iRule like this:
when HTTP_REQUEST {
if { not [class match [HTTP::host] equals Valid_DNS] } {
drop
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects