Typecho
Official CaptchaLa plugin for Typecho. It adds CAPTCHA verification to the comment form on posts and pages and to the user registration form, without theme changes or code.
Every widget is backed by a server-issued, single-use token, and each submission is checked on your server before Typecho saves the comment or creates the account.
What it covers
| Form | Action | Notes |
|---|---|---|
| Comment form | comment | Placed into the theme's comment form, just above the submit button. Checked before the comment is saved. |
| User registration | register | Shown when registration is open in Typecho. Checked before the account is created; on failure the visitor goes back to the form with the error message and the name and email they typed. |
Requirements
- Typecho 1.2 or later
- PHP 8.0+
- A CaptchaLa account — get your App Key + App Secret at
dash.captcha.la
Install
- Get the source from the GitHub repository and run
build.sh(it needs Composer 2.2 or later). It writes a ZIP that bundles the PHP SDK torelease/. - Extract the ZIP so the plugin lands in
usr/plugins/Captchala/. The folder must be named exactlyCaptchala. - In the admin, go to Console → Plugins (控制台 → 插件), find CaptchaLa and click Enable (启用).
Configure
Click Settings (设置) next to CaptchaLa on the plugin list:
- Paste your App Key and App Secret.
- Choose a Widget product and Language.
- Save.
| Setting | Default | Description |
|---|---|---|
| App Key | — | Public key from the CaptchaLa dashboard. Required. |
| App Secret | — | Server secret, used to issue and validate tokens. Required; never sent to the browser. |
| Widget product | Bind | bind (the check runs when the visitor presses the form's submit button), popup, float or embed (a verification bar inside the form). |
| Language | auto | A BCP-47 tag such as en, zh-CN or ja, or auto to follow the visitor's browser. |
| Trusted users | on | Signed-in Typecho users do not see the CAPTCHA on the comment form. |
Until the App Key and App Secret are saved, the forms show no widget and are not blocked.
Screenshots



Troubleshooting
- The widget does not appear on the comment form. Check that the plugin is enabled and both keys are saved. Signed-in users don't see it while Trusted users is on, so test in a private window.
- Every submission is refused. Make sure the App Key and App Secret belong to the same app, and that your site's domain is allowed for that app in the dashboard.
- Trying it out. The public test keys let you check the full flow without an account.
Links
- Source and issues: github.com/Captcha-La/captchala-typecho
- Support: [email protected]