Advanced Client Integration helps you to get the Hash Score and Risk Response (HUMAN Cookie), in real time, by a subscription to a special event on the JavaScript Client.
Advanced Client Integration requires special configuration. Contact HUMAN Customer Support to enable it.
The Risk Cookie must be enabled on the relevant policy to get access to Risk Response or Hashed Score on the client side.
To access the Risk Response on the client side, integrate with the HUMAN Client Side SDK with the following initialization code:
The value of the Risk Response is also reported on the Risk Cookie (_human)
The initialization code should be located before the HUMAN JS Snippet on your site pages. The event is triggered for each Risk Cookie update. For ‘score’, an event based on your custom configuration hashed score or binary score is be reported.
In order to gain access to the Hashed Score or Block Decision on the client side, integrate with the HUMAN client side SDK with the following initialization code. Block decision is based on the policy defined score.
Contact HUMAN Support to access your Hashed Score mapping
In some cases the client network library may strip the Cookie header in the event of cross-domain calls (For example React).
In these cases we add a custom header to every outgoing network call, containing the HUMAN cookie.
When setting the Custom Cookie header, the Custom header name that contains the HUMAN Cookie must be specified. The cookie is extracted from the Custom Cookie header rather than the default HUMAN Cookie header.
Fastly - https://console.humansecurity.com/docs/fastly_enforcer.html#enable-cookie-from-header
Cloudflare - https://portal.document360.io/v1/docs/cloudflare-config#custom-cookie-header
NGINX - https://github.com/PerimeterX/perimeterx-nginx-plugin#custom-cookie-header
Whenever you do this on the server, the client needs to send the cookies on the specified header name. To send the cookies on the specified header:
The name of the header (“x-human-cookie”) should be the same as the name of the header set in the Server Integration section.