# 1. How to configure CAPTCHA for a domain name

Edge supports Edge Captcha and HCaptcha, we will show an example of how to add hcaptcha checks to a website.

First refer to global waf rule, configure waf rules to trigger hcaptcha.

Then create a new application corresponding to the domain name(e.g. www.trump.com)

Configure the domain's waf rule to be the one just created, and choose hcaptcha as the interception action.

Configure forwarding after validation pass.

Finished configure above, let’s do some test: Modify the /etc/hosts file to point the domain name to the node, and note that browser caching should be disabled, otherwise the original URL may still be accessed directly.

Then visit the URL in your browser and you will see the hcaptcha page, and you can continue to visit the original website after the verification has passed.

# 2. How to get the site key and secret key of hCaptcha

First go to the hCaptcha website to register and login, where the site key is located as follows:

secret key is located as follows: