For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
If your organization uses AWS CloudFront services, you can use HUMAN’s CloudFront Lambda@Edge Enforcer to protect against malicious behavior. This Enforcer uses AWS Lambda functions to deploy the Enforcer on your content delivery network (CDN) and determine how traffic to your organization’s server should be handled.
You can learn how to install the Enforcer with this article.
This process only works if you do not have an existing Enforcer integrated with your application. If you do, see our article on manual installation.
Prerequisites
An AWS CloudFront account with the following permissions:
Create AWS IAM policies
Create or edit AWS IAM user permissions
Create AWS Access Keys
Depending on your preferred deployment method, the following tools:
GNU Wget. See how to install with their documentation.
Your unique HUMAN information:
Your Application ID. You can find this under Platform Settings > Applications > Overview in the HUMAN console.
Your Server Token. You can find this under Platform Settings > Applications, then selecting an application and navigating to Application settings > Server token.
Your Risk Cookie Key. You can find this under Bot Defender > Policies > Policy Settings > Policy Information.
Other HUMAN information provided by your Solutions Engineer:
Your logger authentication token.
Your remote configuration authentication token.
Your remote configuration ID.
An Enforcer configuration file, enforcerConfig.json. Be sure to save it in a directory you’ll remember (like /deploy).
AWS IAM Setup
The AWS Lambda@Edge installation consists of three parts. Be sure to complete each part in order.
Unzip cdn-enforcer-deploy-tool.zip to the same directory you saved enforcerConfig.json in.
Run the tool by opening the appropriate script for your system:
Windows:cdn-enforcer-deploy-tool.bat
Mac or Linux:cdn-enforcer-deploy-tool.command
Deploy the Enforcer
When prompted, select AWS CloudFront Lambda@Edge and hit Enter.
$
🚀 HUMAN CDN Enforcer Deploy Tool 🚀
$
? Which platform do you want to deploy to? (Use arrow keys)
$
...
$
Akamai EdgeWorker
$
❯ AWS CloudFront Lambda@Edge
$
...
Continue to follow the steps that appear to complete your deployment.
When you finish the setup, confirm that the displayed details are correct, then enter y to deploy the Enforcer.
Enable CloudWatch logs (recommended)
We recommend creating an IAM role for each Lambda you upload. This lets the function create log groups and log streams in CloudWatch. When you deploy a Lambda@Edge function, it distributes across all edge cache locations, and all logs from the Lambda related to those regions will appear in the CloudWatch logs of their respective edge cache areas. For example, if a user accesses the us-east-1 region, the corresponding logs will be found in us-east-1.