--- title: Typecho description: Install the CaptchaLa Typecho plugin to protect the comment form and the user registration form. --- # 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`](https://dash.captcha.la) ## Install 1. Get the source from the [GitHub repository](https://github.com/Captcha-La/captchala-typecho) and run `build.sh` (it needs Composer 2.2 or later). It writes a ZIP that bundles the PHP SDK to `release/`. 2. Extract the ZIP so the plugin lands in `usr/plugins/Captchala/`. The folder must be named exactly `Captchala`. 3. In the admin, go to **Console → Plugins** (控制台 → 插件), find **CaptchaLa** and click **Enable** (启用). ## Configure Click **Settings** (设置) next to CaptchaLa on the plugin list: 1. Paste your **App Key** and **App Secret**. 2. Choose a **Widget product** and **Language**. 3. 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 ![CaptchaLa plugin settings in the Typecho admin: App Key, App Secret, widget product, language and trusted users](/images/plugins/typecho/plugin-settings.webp) ![Typecho comment form with the CaptchaLa bar above the submit button](/images/plugins/typecho/comment-form.webp) ![Typecho registration form with the CaptchaLa bar](/images/plugins/typecho/register-form.webp) ## 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](/testing) let you check the full flow without an account. ## Links - Source and issues: [github.com/Captcha-La/captchala-typecho](https://github.com/Captcha-La/captchala-typecho) - Support: [supply@captcha.la](mailto:supply@captcha.la)