--- title: osTicket description: Install the CaptchaLa osTicket plugin to protect the open-ticket, sign-in, registration and password reset forms of the client portal and the staff login. --- # 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 | Form | Page | Action | | --- | --- | --- | | Open a New Ticket | `open.php` | `generic_form` | | Client sign in / ticket access link | `login.php` | `login` | | Client registration | `account.php` | `register` | | Client lost password | `pwreset.php` | `lost_password` | | Staff log in | `scp/login.php` | `login` | | Staff lost password | `scp/pwreset.php` | `lost_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`](https://dash.captcha.la) ## Install 1. Get the source from the [GitHub repository](https://github.com/Captcha-La/osticket-captchala) 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. | Setting | Default | Description | | --- | --- | --- | | 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 mode | `bind` | `bind` (the check runs when the visitor presses the form's submit button), `popup`, `float` or `embed` (a verification bar inside the form). | | Widget language | `auto` | A 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](/images/plugins/osticket/instance-config.webp) ![osTicket Open a New Ticket form with the CaptchaLa bar above Create Ticket](/images/plugins/osticket/open-ticket-form.webp) ![osTicket staff login with the CaptchaLa bar above Log In](/images/plugins/osticket/staff-login.webp) ## 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](/testing) let you check the full flow without an account. ## Links - Source and issues: [github.com/Captcha-La/osticket-captchala](https://github.com/Captcha-La/osticket-captchala) - Support: [supply@captcha.la](mailto:supply@captcha.la)