Forum Discussion
EduardoSousa
Aug 26, 2022Altocumulus
HTTP request to allow specific header
Hello guys. I'm new to irules, I was looking for some irule that only allows a specific header to access the application, if you don't have this header allowed it will drop this connection attempt. ...
EduardoSousa
Altocumulus
Hello Pete.
Is it possible to change the Irule to read the value and the header? For example, name = X-Custom-header and value = "ABCDEF123456"
PeteWhite
Sep 01, 2022Employee
when HTTP_REQUEST {
if { (! [HTTP::header exists "Header_name"]) || ([HTTP::header value "X-Custom-header" != "ABCDEF123456) } {
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