Feature preview

Feature Introduction

The form on the station receives human verification, without popping up images, only deciding whether to check the checkbox based on risk, and the backend still needs to verify what

Human verification shifts from selecting images to risk-based clearance, Cloudflare Turnstile provides hosted, non-interactive, and invisible three forms, the checkbox only appears when the risk is high. The token handed over to the backend does not mean security, the server still needs to verify the source, grade the form scenario, and provide a return that can be processed in case of verification failure.

Human verification Form security

Feature Introduction

Add anti-robot verification to the website form, many people are still stuck in the impression of popping up pictures or picking traffic lights. Now, it is more common to release based on risk: normal visitors go through all the way, and requests with higher risk will see the checkbox. The problem is divided into two halves: how to disturb users less on the front-end, and what the back-end needs to verify after the verification is passed. This is explained in four steps: determination method, form selection, server-side verification, and failure return. Finally, a few common questions are attached.

What does the verification rely on to determine whether the visitor is a human when the picture is not popped up?

For example, in Cloudflare Turnstile's public description, it describes itself as a CAPTCHA-free, privacy-oriented robot protection alternative, relying on client-side security challenges running in the browser, observing environmental characteristics and behavioral signals, rather than relying on a visual question to test people. Its Managed form automatically determines whether a checkbox needs to be displayed based on the visitor's risk level: most low-risk visitors are completely unaware, and a checkbox appears only when the risk is high.

This explains why the page seems to have done nothing and passed. For the form, the front-end receives the risk assessment result, and the back-end's responsibility has not decreased, but has changed the validation object.

Which form types are suitable for the three forms of hosting, non-interactive, and invisible?

The difference lies in the degree of requirement for visitors. The hosting form is decided by the platform whether to interact or not; the non-interactive form is defaulting to be insensitive, only giving one challenge when the risk increases; the invisible form does not appear throughout the process, and the judgment is completely completed in the background, therefore, the requirement for failure handling is higher.

Form type Visitor perception Typical form Drop point
Managed Managed Mostly unobtrusive, check box appears when risk is high Register, recover password Balance interruption and blocking
Non-interactive Non-interactive Default unobtrusive, challenge once when necessary Leave messages, subscribe Medium risk scenarios
Invisible Invisible Absolutely no control Login, risk control before ordering Need to be combined with rate limiting and device characteristics

When making a selection, you can first look at the history of form submissions in bulk, as well as the degree of disturbance that the business can accept. The login page is more concerned with fluidity, and it is more appropriate to be invisible; once the registration page is scraped by a script, the consequences are quite serious, and the elasticity of the hosting form is better.

What else needs to be verified after the token is transmitted to the backend

What the front-end usually receives is a short-term token, which only proves that the browser side has completed the challenge, but does not prove that the person submitting this piece of data is indeed the browser. Omitting the server-side verification is equivalent to putting only the threshold on the door, and scripts can still bypass the page and directly call the interface.

The server needs to check at least three items in this step: whether the token is valid and not reused, whether the site key bound to the business scenario is corresponding, and whether the source domain and time window fall within the allowed range. AnQiCMS's form can be connected to reCAPTCHA-like captcha, following the same process of getting the token on the front end, verifying it on the server side again, and providing a return link when it fails. Keep this judgment on the server side, and changing the front-end style will not directly affect the protection strength.

What should the interface return when the check fails

Failure responses should be able to be handled by the supplier, rather than a vague statement that the submission failed. Common practices include separating the scenarios: token invalid, token expired, the same token submitted repeatedly, and insufficient risk score. Include identifiable codes and brief descriptions in the response so that the front-end can decide whether to trigger a challenge again, prompt to try again later, or directly reject.

Record failure rates and repeat submission counts by form dimension. A sudden increase in failure rates is mostly due to the token retrieval process on the front-end; if repeated submissions from the same source are concentrated, it is closer to script behavior, and throttling can be added at the interface layer.

Common questions

Ask: The checkbox didn't appear at all, does that mean the verification didn't work?Maybe not. The form of risk-based release may have been completely insensitive during the low abnormal period. You can use an obvious automated request to self-test once to see if you are required to do a challenge.

Ask: Has the front-end intercepted, does the back-end need to verify again?Yes. The front-end interception only covers the real browser path, the interface may still be called directly, and the token verification on the server side is where the real defense line is implemented.

Ask: Will the invisible form make it harder to handle false interceptions?Answer: Since the controls are not visible, users lack a retry entry, so the failure return and manual appeal path should be designed in full, combined with log observation of trends.

Related functions

Preview

Chinese characters in the file name are garbled when downloading attachments, why do the two file name parameters in the response header need to be written together

When downloading attachments, the Chinese file name is garbled, mostly because only filename or only filename* was written in the response header. The specification document states that both should be written together: parameters with an asterisk should be encoded in UTF-8 percentage encoding and have higher priority, while those without an asterisk should retain ASCII form for compatibility with old clients. This article also explains why the directory separator needs to be replaced.

Preview

The interface documentation has been published, do we need to provide a site description for the model as well?

The interface documentation is aimed at the caller, explaining how to make requests and what public capabilities are available; the site description file is aimed at the large language model, helping the model understand and index the website content. Both have different readers and different functions, one manages calls and the other manages solutions, and both should be crawlable. The site description file is automatically generated by the system, working with the site map to divide labor: the site map manages discovery, and the description file manages solutions.

Preview

After supporting two-level wildcard search in the background file search, how to define the scope before batch modification

Since version 3.6.5, the Anqi CMS background file search supports double-layer wildcard, which expands the search range while also increasing the area of misfire. This article provides the process of defining the scope before batch modification: first list the hit list according to wildcard, then narrow down the matching range to the actual directory to be modified, perform single test modification and batch execution through the site-wide replacement tool, and explain what records to keep before and after the modification for rollback