Forum Discussion
StephenGonsalv1
Nimbostratus
Sep 12, 2017I rule creation for http headers using Data groups
Hi All
Need your help to create an irule to permit the following http headers and drop all(x-) others. Need to work this through by creating a data group for the below headers so that we don't have...
VernonWells
Employee
Oct 09, 2017Not tested, but this should be close.
when HTTP_REQUEST {
foreach hn [HTTP::header names] {
if { $hn starts_with "x-" or $hn starts_with "X-" } {
if { ![class match $hn equals my-data-group] } {
HTTP::header remove $hn
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
