Feature overview
Powered by a risk analysis engine, intelligent verification distinguishes human from robot activity, blocks automated risks, and helps secure your business.

How it works
The intelligent verification service implements captchas using the following workflow.

-
Integrate the intelligent verification code into your application's client (web page) and server, then call the component on the relevant pages.
Note-
When integrating the intelligent verification code, ensure the
appkeyandsceneparameter values match your configuration in the console and are consistent between the client and server. -
When testing different front-end styles, you can use the test parameters (
appkeyandscene) provided in the front-end integration documentation. After testing, you must revert to your originalappkeyandsceneparameter values. Do not use the test parameters in a production environment.
-
-
A user clicks the intelligent verification button on the client (web page). This triggers the intelligent verification component, which automatically sends a verification request to an Alibaba Cloud server to validate the user's action.
-
The Alibaba Cloud server uses risk control technology to validate the verification request and returns the result to the application client.
The possible results are as follows:
-
Passes without a challenge: The
smartCaptchaobject automatically triggers itssuccesscallback, returning the result (the signature verification parameters). -
Fails directly: The client displays a failure message and prompts the user to click the intelligent verification button again.
-
Requires secondary verification: If the initial check fails, the client automatically initiates a secondary verification, such as sliding verification.
NoteThe green section of the diagram illustrates the complete workflow for secondary verification.
3a. When secondary verification is triggered, the user follows the on-screen prompts to slide the slider to the end.
3b. The Alibaba Cloud server uses risk control technology to validate the verification request and returns the result to the application client.
-
Success: Similar to a direct pass, the system triggers the
successcallback, which returns an equivalent result (the signature verification parameters). -
Failure: The client displays a failure message and prompts the user to attempt the sliding verification again.
-
-
The client sends the signature verification parameters (
param) and the business request (for example, a login or registration request) to your application server.NoteThe parameters required for signature verification include
NVC_Opt.token,data.csessionid, anddata.sig. We recommend that you also send theappkeyandsceneparameter values from the intelligent verification configuration to your application server. This allows the server to support multiple captcha configurations for different scenarios. -
Your application server calls the afs signature verification API to validate the signature.
NoteFor Java, .NET, PHP, and Python, you can use the provided Software Development Kit (SDK) to call the pre-packaged signature verification method. For other languages, you can call the signature verification API directly over HTTP.
-
The Alibaba Cloud server receives the signature verification request and validates the signature in real time.
Note-
To prevent malicious actors from collecting
sigvalues for batch attacks, the signature verification parameters are valid for only 10 minutes. -
A signature verification request succeeds only on its first use.
-
-
Your application server receives the signature verification result and processes it based on your business logic.
-
A
codeof 100 indicates that signature verification was successful. -
A
codeof 900 indicates that signature verification failed.
-
-
The application client receives the final verification result and continues the business workflow.
Quick start
Use the following steps to integrate the intelligent verification service into your business.
The intelligent verification service supports only PC web and H5 (mobile WAP and in-app) business types. If you want to deploy a captcha in a native mobile app, you can use the Captcha 2.0 service. For more information, see What is Captcha 2.0?.
-
Log in to the Alibaba Cloud Captcha console, and on the Error Code page, select the Configuration Management tab.
The page displays a list of your existing configurations with columns such as Configuration name, Scenario, Verification method, Business type, and Last updated. To add a new verification configuration, click Add configuration in the upper-right corner. The Actions column provides links to Customize style and System code integration.
-
Click Add configuration.
NoteIf you have already created a configuration for this business scenario, you can reuse it and its integration code.
Set the Configuration name, Peak QPS, Scenario, and Business type. For Verification method, select Intelligent verification.
NotePeak QPS is the number of page visits per second during your business's peak hours.

-
Click Next.
NoteOnce you create a configuration, the system writes it to the production environment. The configuration cannot be modified or deleted, so configure these settings carefully.
-
On the System code integration & test page, securely save the automatically generated client-side and server-side integration code.
-
Integrate the client-side code into your client and the server-side code into your server.
Once the integration is complete, you can use intelligent verification to add captchas to your application.
More features
After integrating the intelligent verification service into your business, you can also use the following features:
-
Customize style: Click Customize style on the Configuration management tab in the Alibaba Cloud Captcha console to customize the style of the front-end component. For details, see Customize the front-end style.
-
Data monitoring: View monitoring data on the Data monitoring tab in the Alibaba Cloud Captcha console. For more information, see View data monitoring.