Feature preview

Feature Introduction

reCAPTCHA is not working, first check the key, form, or proxy exit.

reCAPTCHA is set up but does not intercept the effect, the fastest way to troubleshoot is to check the consistency of the key and domain binding, then confirm that the front-end component is really in the submission process, and finally check whether the server validation and exit network are reachable to the verification interface. The captcha only blocks robot submissions, and the garbage content passing through still needs sensitive word filtering and content review as a safety net.

Anti-spam Submission reCAPTCHA Form security

Feature Introduction

The website has connected to reCAPTCHA but there is no blocking effect, the troubleshooting sequence should be 'static first, then dynamic': first check the key and domain binding at the configuration layer, then check whether the front-end component really participates in the submission, and finally check the server-side verification logic and network exit. The three layers correspond to a typical fault category, and blindly reinstalling components often does not solve the problem because the most common mismatch point is not in the component itself.

One layer: Is the key binding with the domain correct?

The site key and secret key of reCAPTCHA are paired, and the allowed domain is bound during registration. This layer is most likely to have three types of problems: the test key has not been replaced with the official key; the domain binding and the actual access domain are inconsistent, such as registering a naked domain, accessing through the www subdomain, or registering with a preview domain before going online, and the official domain is not added to the allowed list; and there are also cases where the front-end key and the back-end key are filled in reversely.

The method of verification is to compare the three values of 'registered domain, front-end loaded domain, and form domain' together. If any value is inconsistent, the verification request will be rejected by the service provider, and many form implementations will default to passing when they encounter a rejection, which appears to be 'configured but not effective'.

Second level: whether the component is hung on the submission process

The captcha is rendered on the page, but it does not mean that the submission action really includes the verification token. There are three common breakpoints: the form is dynamically rendered or in a popup, the component initialization time is earlier than the form appearance, the token has never been generated; the front-end intercepts the submission event and goes through an asynchronous request, without the response token in the request body; the page has multiple forms, and only the main comment area is configured with verification, while other entries such as registration, password recovery are still submitted裸.

The method of verification is to observe a real submission: the request parameters in the network panel should include the verification code response field, and the form should provide a perceptible failure feedback when the submission is rejected. If the request is not checked at all before being stored, it indicates that there is no closed loop between the front-end rendering and the server-side verification, and the robot only needs to bypass your page to directly submit the interface, making the verification box on the page as if it were empty.

Three-tier: Server-side verification and network exit

The real interception occurs on the server side: After receiving the submission, the server needs to request the verification interface with the token and decide whether to allow passage or not. The failure of this level is mostly due to the network: the exit from the server room to the verification interface is not accessible or blocked by the firewall, and the code goes to the branch of 'fail and allow' after the request times out; the configuration changes of the reverse proxy have lost the submitted fields; and the verification results are not logged, resulting in no way to confirm the actual interception rate.

It is recommended to keep a verifiable record entry on the backend before going live, even if it's just a simple pass/fail marker, as it can quickly locate which layer broke when there is a sudden increase in garbage submissions. AnQiCMS forms can directly integrate with reCAPTCHA captcha to prevent robots, which is part of the built-in content security capabilities, and can be配合 with the system's defense against SQL injection and XSS attacks, so the front-end forms do not need to implement validation logic.

Who will cover the part that the captcha cannot reach?

It is important to clearly define the boundaries of the captcha: it determines whether the submission is like a human, not whether the content itself is good or bad. Fake submissions made by humans, marketing content broken through weak verification by scripts, and spam links are all mixed in after passing the verification. Therefore, the second line of defense of the form needs to be: sensitive word filtering and keyword replacement are responsible for cleaning the content layer, content review is responsible for monitoring the process layer, and comment anti-spam is used to control the frequency of submissions and behavior patterns.

In other words, reCAPTCHA volume, sensitive word and review barrier, both layers must be closed loop to be a complete form protection. When checking the

Common questions

Q: Can the page display the captcha box, does that mean the configuration is fine?A: No. The display only proves that the frontend key is available, but the domain binding and server-side verification may still fail, a real submission must be made and the server-side verification result must be checked.

Q: Should the server-side verification failure be allowed or intercepted?A: It is recommended to intercept and prompt for a retry, rather than allowing a failure to pass; at the same time, leave a log for failed verification to distinguish between configuration errors and network fluctuations.

Q: Is there still a need for sensitive word filtering after receiving a captcha?A: Yes. The captcha manages the source of submission, sensitive word filtering and content review manage the quality of content, and the two cover different types of spam, serving as a backup for each other.

Related functions

Preview

Where should website builders and template developers look for the technology stack of Iris framework and GORM data layer?

The same technology stack description has different meanings for two types of readers: web builders should look at the running resources and deployment forms brought by GoLang and Iris framework, understanding memory and concurrency performance according to the official estimates; template and secondary developers should look at Iris' routing and rendering boundaries, and how GORM data layer maps to custom content models. Concluding with only one indicator can easily lead to selection bias.

Preview

What does the anti-crawling interference code look like from the visitor's perspective, and will it affect normal reading?

The interference code is a built-in anti-crawling capability of AnQiCMS: It adds noise characters to the text stream for bulk grabbing and copying, while the page rendered to real visitors by the browser is not affected, and it is not noticeable during normal reading. It belongs to the in-site protection layer along with sensitive word filtering, JWT authentication, anti-SQL injection, and XSS, but has different responsibilities: the interference code protects content assets, while the rest of the defense line protects the site itself. The scope of activation is controlled as needed to avoid a difference in the whole site生效.

Preview

Which part of the writing process does AI painting, automatic tagging, and automatic image matching manage?

AnQiCMS has three AI capabilities that manage different segments of the creative process: AI writing is responsible for expanding the theme into an article, AI automatic tagging and AI painting generate tags and images during the creation of the article, and automatic image matching for the title assigns images based on the content of the title. This article breaks down the writing, tagging, and matching segments, explaining the intervention points of each capability and the aspects that still require manual oversight.