Skip to content

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 ​

FormActionNotes
Comment formcommentPlaced into the theme's comment form, just above the submit button. Checked before the comment is saved.
User registrationregisterShown 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 ​

  1. 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 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.
SettingDefaultDescription
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 productBindbind (the check runs when the visitor presses the form's submit button), popup, float or embed (a verification bar inside the form).
LanguageautoA BCP-47 tag such as en, zh-CN or ja, or auto to follow the visitor's browser.
Trusted usersonSigned-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

Typecho comment form with the CaptchaLa bar above the submit button

Typecho registration form with the CaptchaLa bar

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.

MIT-licensed examples · CaptchaLa is operated independently