Joomla: protect your forms with SilentShield
The “Captcha - SilentShield” plugin is selected as the captcha in Joomla and thereby protects the forms for which Joomla offers a captcha, such as contact and registration. Visitors solve no puzzle.
Beta
The plugin is in beta and not yet published in the Joomla Extensions Directory (JED). You can get the installation package (ZIP file) from our support.
Requirements
- Joomla 5.0 or later (tested with 5.4.12). Joomla 4 is not supported; the installation stops there with a message. Joomla 6 has not been tested yet.
- PHP 8.1 or later with the PHP extensions curl and json (both usually present)
- A SilentShield account with an API key for your website's domain
How the protection works
- On the page with the form, the extension loads the SilentShield script. It observes how the form is used and puts a one-time proof into a hidden field. Your visitors solve no puzzle and click nothing extra.
- When the form is submitted, your server uses the secret key to ask SilentShield whether a person filled it in.
- In “Enforce” mode, only a submission that SilentShield judges human gets through. All others are rejected with an error message at the form.
Installation
- In the Joomla backend, open “System → Install → Extensions”.
- Upload the ZIP file (plg_captcha_silentshield-<version>.zip) under “Upload Package File”.
Alternatively, on the command line:
php cli/joomla.php extension:install --path=/path/to/plg_captcha_silentshield-<version>.zipYou do not need Composer: the SilentShield PHP SDK is included in the package. If it is already loaded via Composer, the plugin uses that copy.
Enter your keys
You need two values from the SilentShield dashboard. You find both under “API keys” with your key:
- Site key (in the extension: “Site key”): public. It loads the script and appears in your page source. It is valid for the domain you entered when you created it.
- Secret key (in the extension: “Server secret”): stays on your server and is never sent to the browser. Do not share it.
- Open “System → Plugins” and then “Captcha - SilentShield”.
- Enter the site key under “Site key” and the secret key under “Server secret”.
- Choose the mode (“Enforce” or “Observe only”), the behaviour during an outage under “If SilentShield cannot be reached”, and Standard or EU under “API endpoint”.
- Enable the plugin and save.
Recommended start
Set the mode to “Observe only” for the first few days. No submission is rejected then, and the extension records what would have been rejected (where, see “Check that it works”). If everything looks as expected, switch to “Enforce”.
Select it as the captcha
- Open “System → Global Configuration”.
- Under “Default Captcha”, select “Captcha - SilentShield” and save.
Components with their own captcha setting (such as Contacts and Users) take over this value as long as “Use Default” is set there.
Protected forms
- Contact form
- Registration, if registration is allowed
- Forgot password
- Forgot username
- Submitting or editing an article in the frontend, if a captcha is set there
Not protected: the login form, because Joomla 5 offers no captcha there. Third-party forms (such as RSForm or Convert Forms) are only protected if they use the Joomla captcha; that depends on the extension.
Check that it works
- Open a page with a protected form and view the page source (right-click, “View page source”). Search for “client.js?k=”. If you find a script from api.silentshield.io or api-eu.silentshield.io with your site key, the script is in place.
- Fill in the form like a visitor and submit it. It must go through without an error message.
- Counter-check in “Enforce” mode: turn off JavaScript for the page in your browser, reload it and submit the form again. The proof is then missing, and the submission is rejected with an error message, just like a bot that skips the script.
In “Observe only” mode, the plugin accepts every submission and records the verdict in the SilentShield dashboard. Joomla logs submissions accepted unchecked during an outage as a warning (category silentshield, only the reason, no proof and no secret).
If SilentShield cannot be reached
If SilentShield cannot be reached (outage, maintenance, timeout) or your secret key is refused, the extension's outage setting decides. With “accept” (default), submissions go through unchecked and are logged: your forms keep working but are not protected during that time. With “reject”, they stay protected but accept nothing from real visitors either. A bot verdict is never let through, whatever is set.
Troubleshooting
- The page source shows no client.js
- Check that the plugin is enabled, that a site key is entered and that “Captcha - SilentShield” is selected under “Default Captcha” (or in the component). If the plugin settings show a warning about the custom API address at the top, correct the address or choose Standard or EU: as long as it is invalid, no script loads.
- Real visitors see “Your submission could not be verified”
- The script did not run, for example because JavaScript is turned off or a Content Security Policy blocks it. In your own Content Security Policy, allow the chosen SilentShield host in script-src and connect-src, and blob: in worker-src.
- Submissions go through and the log shows warnings
- SilentShield could not be reached, or your secret key was refused (reason “auth”). Check the secret key and the status of your API key in the dashboard.
- Real visitors are rejected for a short time
- If a very large number of submissions arrives in a short time, SilentShield temporarily rejects further ones, even if submissions should be accepted during an outage. Otherwise an attacker could first fill the limit and then get every bot through. After a short time, real visitors get through again.
- Forms appear in the dashboard under a new name
- The extension reports the supported forms to SilentShield under their own name, so a verdict only applies to that form. Check the settings of the forms under the new name in the dashboard.
Limits
- The login form is not protected (see “Protected forms”).
- While SilentShield cannot be reached and submissions are accepted, your forms are not protected. Joomla logs every such submission.
- The plugin reports contact, registration, “Forgot password” and “Forgot username” to SilentShield under their own name, for example joomla:com_contact.contact. Other forms have no name of their own.
Where the secret key is stored
Joomla stores plugin settings in plain text in the database; the password field only hides the value in the interface. Anyone allowed to open the plugin settings can read it, and so can anyone with access to the database or backups. Give the right to manage plugins only to Super Users, treat database backups like credentials, and renew the secret key in the dashboard if an administrator account or a backup may have fallen into the wrong hands.
Privacy
Your server sends only the proof and the page address without parameters to SilentShield, no form contents. Include SilentShield in your privacy policy.