The SMS Alert plugin works with reCaptcha by BestWebSoft to check a reCAPTCHA before it starts an OTP from the Login with OTP and Signup with Mobile forms. This helps reduce bot requests that waste SMS credits.
New to the plugin? Start with the WordPress SMS plugin setup guide.
Which forms are covered?
Form | How reCAPTCHA applies |
|---|---|
SMS Alert Login With OTP | SMS Alert verifies the reCAPTCHA before starting the OTP |
SMS Alert Signup With Mobile | SMS Alert verifies the reCAPTCHA before starting the OTP |
WooCommerce login, registration and lost password | Protected through the reCAPTCHA plugin’s own form settings |
Comments | Protected by the reCAPTCHA plugin; this is separate from OTP |
Before you start
- Install and activate reCaptcha by BestWebSoft and SMS Alert, and log in to your SMS Alert account in the plugin.
- Get a Google reCAPTCHA site key and secret key and add them in the reCaptcha plugin.
- Make sure users have a mobile number saved as billing_phone. WooCommerce is needed for its registration and password reset forms.
- Keep SMS credits in your account.
- On India routes, message text must match an approved DLT template.
Setup
- In the SMS Alert OTP settings, enable Login with OTP. Enable Signup with Mobile too if you need it.
- Save the settings.
- Open the reCaptcha plugin settings and go to the list of forms to protect.
- Enable SMS Alert Login With OTP and SMS Alert Signup With Mobile.
- Save, then test both forms in a private browser window.
How it works
- The visitor opens the OTP form and enters a mobile number.
- The visitor passes the reCAPTCHA.
- SMS Alert verifies it. If it fails, the visitor sees “The reCaptcha verification failed. Please try again.”
- If it passes, the mobile number is checked and the OTP is sent.
Test checklist
- Submit without passing the reCAPTCHA: no OTP should arrive.
- Submit after passing it: one OTP should arrive.
- Try an unregistered number on Login with OTP: you should see an error.
- Test registration and lost password with reCAPTCHA enabled, and confirm a failed check sends no OTP.
Troubleshooting
Problem | What to check |
|---|---|
SMS Alert forms are missing from the reCaptcha list | A Login with OTP option is enabled in SMS Alert and you are logged in. |
reCAPTCHA does not appear | Both plugins are active, keys are correct and the form is enabled. Clear caches. |
Verification always fails | The site key and secret key match your domain and reCAPTCHA version. |
“Multiple accounts are associated with this mobile number” | Keep each mobile number on one account. |
No OTP arrives | Check SMS credits, the number format and the OTP template. |
SMS rejected on India routes | Text differs from the approved template. See Template Mismatch Error. |
Frequently asked questions
Which reCAPTCHA plugin does SMS Alert work with here?
reCaptcha by BestWebSoft.
Which SMS Alert forms can I protect?
Login with OTP and Signup with Mobile appear as forms in the reCaptcha plugin.
Does reCAPTCHA replace OTP verification?
No. reCAPTCHA checks for bots; OTP checks that the user can receive SMS on the number.
Will reCAPTCHA stop all OTP abuse?
No. It reduces automated requests. Also monitor your SMS usage.
Why is the form missing from the reCaptcha settings?
Check that both plugins are active, you are logged in to SMS Alert and Login with OTP is enabled.
Why does no OTP arrive after passing reCAPTCHA?
Check credits, the mobile number, whether the account exists and DLT approval.
