Header functions
The Header Functions module can validate the HTTP headers of a request to disallow it to proceed if not wanted. It consist of a set of validation functions, where each function perform its validation depending on the provided settings. It is also possible to add headers in a Request/Response scenario. Client can receive additional response headers added by PSMG. In the same way, request headers sent to backend can be added.
Header validation
Validate HTTP headers. Block requests depending on if header exists or not.
| Property | Description |
|---|---|
Name |
The name of the module configuration. |
Functions |
One or more functions that validates specific headers of the request. |
Header Validation Response Code
Defines the HTTP response sent to the client when a header is blocked.
| Property | Description |
|---|---|
HTTP Code |
The HTTP code sent in the response to client when a cookie is blocked. Default: 403 - Forbidden |
Message |
The message set in the response body. |