Forum Discussion
EduardoSousa
Altocumulus
Aug 26, 2022HTTP 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
Sep 01, 2022Hello Pete.
Is it possible to change the Irule to read the value and the header? For example, name = X-Custom-header and value = "ABCDEF123456"
- PeteWhiteSep 01, 2022
Employee
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