Skip to main content

Domain allowlisting

A domain allowlist restricts where a sitekey can be used. Each sitekey has its own allowlist.

Configure your allowlist​

  1. In the Dashboard, go to Sites and open your sitekey.
  2. Under Domain allowlisting, turn on Enabled.
  3. Enter a hostname such as example.com and select +. Use the hostname by itself. Adding example.com also allows subdomains such as shop.example.com.
  4. Review Detected domains if available, then save the site to apply your changes.

Domain allowlisting settings with Enabled on and example hostnames in Your settings

Allowlisting is off by default. If you leave the list empty and turn off mobile SDK access, hCaptcha allows requests from any hostname. An active allowlist can reject requests before hCaptcha issues a response token.

Preview the impact​

When available, Detected domains compares your unsaved settings with traffic from the last 24 hours. The number in the heading counts the rows displayed. Review Not allowed entries before saving and use + to add any host you want to permit.

Detected domains with Not allowed badges, a blocked-request estimate, and a count of requests the preview could not evaluate

The blocked estimate counts evaluated requests only. The Dashboard shows unevaluated requests separately and flags sampled or limited results. After five minutes, the preview keeps the counts and hides the verdicts. Select Retry to refresh the preview before saving.

Allow mobile SDK traffic​

The official hCaptcha mobile SDKs use generated hostnames. Select Allow hCaptcha Mobile SDK to include them in your allowlist. To allow only SDK traffic, turn on Enabled and leave the web hostname list empty.

Troubleshoot unevaluated traffic​

Cannot evaluate means the preview lacks information such as a usable hostname or page URL for those requests. Test the hCaptcha flow on the affected pages or in your mobile app. Check that the integration uses the sitekey you're editing and that the allowlist covers its hostnames.

Select Retry if the preview fails to load or after testing your integration. Older requests can remain in the preview for up to 24 hours. If recent traffic still shows Cannot evaluate, contact Support with the sitekey, affected page URLs, and approximate test times.