Bot Prevention
Menu

Install

Subscribe and install

Subscribe and register in AWS Marketplace. The World ID team then contacts you and helps you set up World ID. You install with one CloudFormation template, whenever you are ready.

  1. SubscribeAWS Marketplace
  2. RegisterRegistration page
  3. OnboardingWorld ID team
  4. Signing keyAWS KMS
  5. World ID appDeveloper Portal
  6. LaunchSetup page
  7. SettingsCloudFormation
  8. TestYour website
AWS Marketplace ends at registration. You enter your installation ID, World ID app and AWS settings, and review every resource, in CloudFormation.

Step 1: Subscribe in AWS Marketplace

Sign in to AWS with the account that owns your CloudFront distribution. Open the World ID Bot Prevention listing in AWS Marketplace, subscribe, and choose Set up your account. The registration page opens.

AWS Marketplace offer summary with the Set up your account button

Step 2: Register

Enter your company name, a contact person, a contact phone number and an email address. All four are required. Then choose Register. World uses these details to contact you about this subscription and does not share them with AWS.

Registration page asking for company name, contact person, contact phone and email address

A thank-you page confirms your registration, and we email you your installation ID and a link to your setup page. You can close the page. To change your details later, open your Marketplace subscriptions, choose World ID Bot Prevention, choose Set up your account again and submit the registration page again.

Step 3: Talk to the World ID team

The World ID team contacts you within 48 hours, usually to schedule a short call. Before it, check the requirements. The team helps you with steps 4 to 7; you can also do them on your own, now or later.

Your registration email has a link to your setup page, which you use in steps 4 and 6. The link works for 14 days; do not share it. For a new link, choose Set up your account in AWS Marketplace again and submit the registration page again. We send at most one email every 10 minutes.

Questions before then? Email botprevention@toolsforhumanity.com.

Step 4: Create the signing key in AWS KMS

Your verification API signs every World ID request with your RP's key. The key lives in AWS KMS, and its private key never leaves KMS.

  1. Create the key

    In AWS KMS in us-east-1, choose Create key. Select key type Asymmetric, key usage Sign and verify and key spec ECC_SECG_P256K1. Leave Key users empty: the stack gives its API function access. The default key policy is sufficient.

  2. Get the signer address

    On the key's Public key tab, copy the public key. Paste it on your setup page and choose Show signer address. The page shows the key's signer address for Developer Portal. The public key is not secret.

  3. Keep the key ARN

    Copy the key ARN from General configuration. CloudFormation asks for it in step 7. Use the key ARN, not an alias.

KMS key cryptographic configuration: asymmetric, ECC_SECG_P256K1, sign and verify
The key's cryptographic configuration in AWS KMS.

Step 5: Create your World ID app

In Developer Portal, create a World ID 4.0 app and its RP, and register your website's origins. For the signer, choose Use Existing Key and enter the signer address from step 4.

Keep the app ID (app_…) and RP ID (rp_…). CloudFormation asks for them in step 7.

Developer Portal signer key dialog with Use Existing Key selectedDeveloper Portal field for the signer address
Choose Use Existing Key, then enter the signer address from step 4.

Step 6: Launch the stack from your setup page

Sign in to the subscribed account, then open the setup link from your registration email. Enter the app ID and RP ID from step 5 and choose Prepare launch link. Then choose Launch stack. CloudFormation opens in us-east-1 with the World ID Bot Prevention template, the stack name wid-<installation ID>, your installation ID, app ID and RP ID.

Every customer uses the same template, so it holds no secret and none of your settings. You can also open the current template directly: in CloudFormation, choose Create stack, With new resources (standard) and Amazon S3 URL, paste that address and enter the three IDs yourself.

AWS Marketplace also offers the template with Quick Launch: open your subscription, choose Set up your account, and on the Configure and launch page register with Sign in or create an account, then choose Launch template. CloudFormation opens with the release that AWS reviewed, which can be one release older than the setup page's. Enter your installation ID from the registration email and the other IDs yourself. The stack is the same either way; launch it once, from one place. You update it as described in Updates.

Step 7: Enter your settings in CloudFormation

CloudFormation shows the parameters in groups, and each parameter explains its choices. The launch link fills in the stack name and the three IDs.

GroupParameterEnter
World IDInstallation IDRequired. Filled in by the launch link; also in your registration email.
World IDWorld ID app IDRequired. Filled in by the launch link: the app ID from step 5.
World IDWorld ID RP IDRequired. Filled in by the launch link: the RP ID from step 5.
World IDRP signing key ARNRequired. The key ARN from step 4.
World IDCredential that visitors verify withproof_of_human (Proof of Human), or selfie (Proof of Presence | Selfie Check) if the World ID team enabled it for your app.
Website to protectCloudFront distribution IDRequired. The ID from your CloudFront distributions list, such as E2QWRUHAPOMQZL.
Website to protectWeb ACL ARN (optional)The ARN of the global Web ACL that is attached to the distribution. Leave it empty if the distribution has no Web ACL: the stack then creates and attaches a dedicated one.
ProtectionAfter installationenforce to challenge visitors at once, or count to only count the requests that would be challenged.
ProtectionAlways-verified paths (optional)Leave it empty to challenge only likely bots. Otherwise enter up to eight lowercase paths, separated by commas, such as /account,/checkout, or * for the whole website. See Always-verified paths.
ProtectionInsert the AWS WAF scripttrue unless your pages already load the AWS WAF script. See AWS WAF script.
AlarmsAlarm email (optional)An address for alarms of the verification API.

Keep the defaults in the Advanced group. In particular, keep World ID environment at production. Then review the resources, acknowledge that CloudFormation creates IAM resources, and choose Create stack.

CloudFormation quick-create page with the installation ID, app ID and RP ID filled in, and the World ID, Website to protect and Protection parameters

Step 8: Wait for the stack

Wait for CREATE_COMPLETE. It usually takes a few minutes, while CloudFront deploys the session check to its edge locations. The installer then checks the routes on every hostname of the distribution.

CloudFormation stack list with the stack in CREATE_IN_PROGRESS

The stack's Outputs tab shows these values, among others:

OutputMeaning
WebsiteThe address of your distribution.
InstallationIdYour installation, as entered when you created the stack.
VersionThe installed release.
TrafficMetricsUrlWhere to see AWS WAF traffic metrics.

If the stack fails, open its Events tab. The failed resource names the cause. See Troubleshooting.

Step 9: Test a real verification

  1. Open a protected path

    In a private browser window, open an always-verified path on your website, such as /wid-test. The Verify you are human page appears.

  2. Verify

    Scan the QR code with World App and approve the request.

  3. Check your site

    The page reloads with your content. Check that your other pages, forms and logins still work.

In monitor-only mode, no visitor is challenged. AWS WAF metrics show which requests would be. See View traffic metrics.

Next steps