Forum Discussion
NickAD
Apr 13, 2017Cirrus
iRule to block string in header and display blocking page
I am wondering if I can create an iRule to block a request if a certain string appears anywhere in the header.
For example, it would be something like...
when HTTP_REQUEST {
if { [HTTP::header ...
Vijay_E
Apr 13, 2017Cirrus
I have never tried this but you may be able to get something along this line working:
when HTTP_REQUEST {
foreach header_var [HTTP::header names] {
if { [HTTP::header header_var] contains "test1234" } {
drop
return }
}
}
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