Configuration Reference
Overview
All HUMAN enforcer configuration is stored in a data group named pxconfig. Configuration values are read from this data group at runtime.
Modifying Configuration
To modify a configuration value, use the following command on the F5 shell:
Where:
KEY_NAMEis the name of the configuration directiveVALUEis the value to set
Example: Enable blocking mode:
Example: Set a custom IP header:
Directives
Directives containing APP_ID
Some directives in the configuration may require a specific name which contains the appID of the application taken from the portal.
The name in the configuration must be identical to the name configured in the data group/virtual server/pool.
A mismatch in the name may lead to errors on the module.
Configuration Examples
Enable Blocking Mode
Enable Sensor Injection
When enabled, the iRule will automatically inject the HUMAN JavaScript sensor into HTML pages:
When sensor injection is enabled, the iRule will remove the Accept-Encoding header from incoming requests so the origin will NOT return compressed content. Make sure to enable compression on the LTM level if you use script injection.
Enable Score Header
Send the risk score to your origin server for custom handling:
This will add an x-px-score header to requests forwarded to your origin.
Enable Data Enrichment Header
Send the PXDE (PerimeterX Data Enrichment) payload to your origin:
Set Custom IP Header
If your application is behind a proxy or CDN, specify the header containing the real client IP:
Enable Debug Logging
For troubleshooting, enable debug logging:
Remember to disable debug logging in production as it can impact performance.