tencent cloud

Feedback

Quick Start

Last updated: 2024-01-02 15:46:48

    Sequence diagram of calling Captcha

    Web and app

    The sequence diagram of the web and app calling Captcha is as follows:
    Customer front end: needs to integrate to Captcha to display the verification page on the client.
    Customer back end: needs to call the ticket verification API to verify the client verification result.
    

    Quick integration

    Step 1. Create CAPTCHA and obtain the CAPTCHA key.

    1. Log in to the Captcha console and select CAPTCHA -> Manage CAPTCHA on the left navigation pane to go to the Manage CAPTCHA page.
    2. Click Create CAPTCHA and set parameters such as CAPTCHA name according to your business requirements.
    3. Click OK to complete the CAPTCHA creation. Then you can view the CAPTCHA key (CaptchaAppId and AppSecretKey) in the CAPTCHA list.
    Note:
    After a CAPTCHA is created, you can modify the verification method, risk control level, and appearance style. For more information, please see Console Operation Guide.

    Step 2. The client integrates to Captcha and displays the verification page.

    You need to dynamically introduce the Captcha JS into the web and app codes. When the business requires behavior verification, it calls and renders the Captcha JS for verification. For more information, please see Web Integration and App Integration.
    Note:
    TCaptcha-global.js must be loaded dynamically. If you use other methods to avoid dynamic loading, CAPTCHAs cannot be updated and consequently some legitimate requests rather than malicious requests might be blocked.

    Step 3. The server connects to Captcha and calls the ticket verification API to perform a second verification.

    The server needs to call the ticket verification API (DescribeCaptchaResult) to verify the client verification result. For more information, please see Integration to Ticket Verification (Web and App).
    Note:
    If ticket verification is not integrated, the black market can easily forge verification results, which defeats the purpose of human verification via CAPTCHAs.

    More features

    The Captcha console also supports the following features:
    Statistics: View data such as requests, passed ticket verifications, failed ticket verifications, and ticket verifications.
    Verification Configuration: Adjust the configuration of CAPTCHA security, appearance, and others.
    For more information, please see Console Operation Guide.

    FAQs

    For more information, please see Integration FAQs.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support