Menu
Operate
Configure protection
Change what is protected, switch between monitoring and protection, and tune limits. Every setting is a CloudFormation parameter of your stack.
Change a setting
Open your stack
In CloudFormation in us-east-1, select the stack
wid-<installation ID>.Update with the existing template
Choose Update, then Use existing template. Change only the parameters that you want to change and keep all others.
Submit
Acknowledge IAM resource creation, submit, and wait for
UPDATE_COMPLETE. CloudFront can take a few more minutes to apply the change everywhere.
With the setup script, edit .wid/customer.json, then run plan and apply.
Monitor or protect
Rollout selects the mode. With enforce, flagged visitors without a session must verify, and Bot Control blocks bots that identify themselves and that AWS cannot verify, such as HTTP libraries and non-browser user agents, and requests from data centers that bots typically use. AI bots are only labeled. With count, nobody is challenged or blocked, and AWS WAF counts the requests that it would flag or block.
Before you enforce, check the Bot Control metrics in count for your own API clients, apps, webhooks and monitors that identify themselves as bots. Add an Allow rule to your Web ACL for each one that you want to keep. Your rules run before the World ID rules, so allowed requests are neither blocked nor challenged.
Bot Control needs about 5 minutes of traffic for session-based labels, and up to 24 hours for coordinated-activity labels. To see what it detects before you enforce, run in count for at least a day. Changing the mode does not revoke existing sessions.
Always-verified paths
AlwaysVerifiedPaths names the paths where every visitor without a session must verify, in addition to the requests that Bot Control labels.
| To verify | AlwaysVerifiedPaths |
|---|---|
| Only requests that Bot Control labels | Empty |
/account and everything below it | /account |
/account and /checkout | /account,/checkout |
| The whole website | * |
- A path includes its subpaths:
/accountincludes/account/settings, but not/accounting. - Matching ignores letter case. Enter the paths in lowercase.
- Enter up to eight paths, separated by commas, without spaces and without a trailing slash. Paths can contain letters, digits and
- . _ ~. - The
/__wid/*routes are never challenged. Always-verified paths also apply to static files, which Bot Control does not inspect.
AWS WAF script
Most Bot Control labels need the aws-waf-token cookie, which the AWS WAF script sets in the browser. With SdkInjection=true, the stack turns on AWS WAF's automatic script insertion for your Web ACL, and CloudFront adds the script to your HTML pages. This affects the whole Web ACL:
- CloudFront fetches responses uncompressed from your origin and removes
Rangeheaders. - Your Content Security Policy must allow
https://*.awswaf.cominscript-srcandconnect-src. - Cache behaviors with origin-event Lambda@Edge functions or Origin Shield do not get the script.
- HTML pages already in the CloudFront cache get the script when they expire, or when you invalidate them.
Set SdkInjection=false if your pages already load the AWS WAF script. The stack then leaves this setting of the Web ACL unchanged.
Credential
Credentials selects what visitors prove: proof_of_human (Proof of Human) or selfie (Proof of Presence | Selfie Check). Contact the World ID team to enable Selfie Check for your app before you choose it.
Session length
WindowSeconds sets the session length and the uniqueness window, from 600 to 86400 seconds (24 hours, the default). A shorter window makes visitors verify more often, and each new verification is billed. After a change, visitors who already verified can verify again at once, because the new window has new actions.
Rate limits and capacity
| Parameter | Default | Limits |
|---|---|---|
ApiRate | 5000 | Verification API requests per IP address in 300 seconds. Visitors behind one IP address, such as a company network, share it. |
VerifyRate | 100 | Proof submissions per IP address in 60 seconds. Stops a few addresses from using up the shared budget. |
RequestsPerMinute | 1200 | Proof verifications per minute for the whole installation. More get HTTP 429 and raise the VerifyRefused alarm. It is not a billing cap. |
ApiConcurrency | 0 | Reserved Lambda concurrency for the verification API. 0 reserves none. |
Size RequestsPerMinute for your peak verification traffic. Raise VerifyRate only if many visitors share one IP address. AWS WAF rate limits are approximate.
Alarms
Set NotificationEmail to receive the ApiErrors and VerifyRefused alarms, then confirm the SNS subscription email from AWS.
Add a hostname
The verification API accepts only the hostnames of your distribution. After you add an alias to the distribution, update the stack with a new HostsRevision value, any 64-character hexadecimal string, before you send traffic to the new hostname. The setup script does this on every plan.
Terminal
openssl rand -hex 32View traffic metrics
Find your Web ACL
In the stack's Outputs, note
WebAclNameand openTrafficMetricsUrl, or open AWS WAF.Open the dashboard
Choose Global (CloudFront), select the Web ACL and open Traffic overview. In monitor-only mode, choose Switch to count action in the Top 10 rules pane.
The FlagByLabel rule of the rule group named by RuleGroupName counts the requests that match your policy, including requests with a valid session. It is not a count of challenges or unique visitors. Metrics can take a few minutes to appear.
Settings reference
The CloudFormation console shows the parameters in this order. The setup script stores the same settings in .wid/customer.json.
| Console label | Parameter | Default | Values |
|---|---|---|---|
| RP signing key ARN | RpSigningKeyArn | none | ECC_SECG_P256K1 KMS key ARN in us-east-1 |
| Credential that visitors verify with | Credentials | proof_of_human | proof_of_human or selfie |
| CloudFront distribution ID | DistributionId | none | Do not change after installation |
| Web ACL ARN (optional) | WebAclArn | empty | Empty creates a Web ACL. Do not change after installation |
| After installation | Rollout | enforce | enforce or count |
| Always-verified paths (optional) | AlwaysVerifiedPaths | empty | Empty, *, or up to eight paths such as /account,/checkout |
| Insert the AWS WAF script | SdkInjection | true | true, or false if your pages load it |
| Alarm email (optional) | NotificationEmail | empty | Email address for alarms |
| Session lifetime in seconds | WindowSeconds | 86400 | 600 to 86400 |
| API requests per IP address in 5 minutes | ApiRate | 5000 | 10 or more |
| Proof submissions per IP address per minute | VerifyRate | 100 | 10 or more |
| Verifications per minute for the installation | RequestsPerMinute | 1200 | 1 to 1000000 |
| Reserved API concurrency | ApiConcurrency | 0 | 0 to 1000 |
| IAM permissions boundary (optional) | PermissionsBoundaryArn | empty | IAM policy ARN for the execution roles |
| World ID environment | WorldIdEnvironment | production | Keep production; sandbox accepts simulator proofs and blocks no bots |
| Hostname refresh value | HostsRevision | initial | A new 64-character hex value after you add a hostname |
| Attachment mode | AttachmentMode | automatic | Do not change after installation |