Skip to content

osTicket ​

Official CaptchaLa plugin for osTicket. It adds CAPTCHA verification to the client portal's open-ticket, sign-in, registration and password reset forms, and to the staff login and password reset, without writing code.

Every widget is backed by a server-issued, single-use token, and each submission is checked on your server before osTicket handles the form.

What it covers ​

FormPageAction
Open a New Ticketopen.phpgeneric_form
Client sign in / ticket access linklogin.phplogin
Client registrationaccount.phpregister
Client lost passwordpwreset.phplost_password
Staff log inscp/login.phplogin
Staff lost passwordscp/pwreset.phplost_password

A refused submission shows the CAPTCHA message in the page's usual message area. The open-ticket form keeps everything the visitor typed.

Requirements ​

  • osTicket 1.18 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 writes a ZIP that bundles the PHP SDK to release/.
  2. Extract the ZIP into your osTicket installation so the plugin lands in include/plugins/captchala/.
  3. Sign in as an administrator and go to Admin Panel → Manage → Plugins → Add New Plugin. Click Install next to CaptchaLa CAPTCHA.

Configure ​

  1. Open the plugin, go to Instances → Add New Instance, give the instance a name and set its status to Enabled.
  2. On the Config tab, paste your App Key and App Secret, adjust the Widget mode and Widget language if you like, and save.
  3. Back on the plugin page, set the plugin's status to Active and save.
SettingDefaultDescription
App Key—Public key from the CaptchaLa dashboard. Required.
App Secret—Server secret, used to issue and validate tokens. Required; stored encrypted and never sent to the browser. Leave the field empty to keep the saved secret.
Widget modebindbind (the check runs when the visitor presses the form's submit button), popup, float or embed (a verification bar inside the form).
Widget languageautoA BCP-47 tag such as ja or pt-BR, or auto to follow the visitor's browser.

Screenshots ​

CaptchaLa instance settings in the osTicket Admin Panel: App Key, App Secret, widget mode and language

osTicket Open a New Ticket form with the CaptchaLa bar above Create Ticket

osTicket staff login with the CaptchaLa bar above Log In

Notes ​

  • Content Security Policy. The plugin adds the CaptchaLa script hosts and blob: workers to the Content Security Policy osTicket sends on the protected pages, so no CSP changes are needed.
  • Privacy. The plugin stores no visitor data.

Troubleshooting ​

  • The widget does not appear. Check that the instance is Enabled, the plugin is Active, and both keys are saved on the Config tab.
  • Every submission is refused. Make sure the App Key and App Secret belong to the same app, and that your helpdesk'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