Configure CAPTCHA for the storefront
Customers can be required to enter a CAPTCHA each time they log in to their accounts, or after several unsuccessful attempts to log in. In addition, numerous forms used throughout the storefront can be configured to require verification by CAPTCHA.
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Customers and choose Customer Configuration.
-
Expand
-
Set Enable CAPTCHA on Storefront to
Yes
. Then complete the remaining options as follows:-
Enter the name of the Font to be used for the CAPTCHA symbols (default:
LinLibertine
).To add your own font, the font file must reside in the same directory as your Commerce installation and must be declared in the
config.xml
file of the CAPTCHA module. -
Select any of the following Forms where the CAPTCHA is to be used. To choose multiple forms, hold down the Ctrl key (PC) or Command key (Mac).
Applying coupon code
Checkout/Placing Order
Create user
Login
Forgot password
Contact Us
Change password
Share Wishlist Form
Payflow Pro
(see security patch Knowledge Base article)Send to Friend Form
Add Gift Card Code
Create company
-
Set Displaying Mode to one of the following:
Always
— CAPTCHA is always required to access the selected forms.After number of attempts to login
— Enter the number of login attempts before the CAPTCHA appears. A value of 0 (zero) is similar to “Always.” When selected, the number of unsuccessful login attempts appears. This option does not apply to the Forgot Password form, which if enabled, always display the CAPTCHA.
-
For Number of Unsuccessful Attempts to Login, enter the number of times a customer can log in unsuccessfully before the CAPTCHA appears. If set to zero (
0
), CAPTCHA is always used. -
For CAPTCHA Timeout (minutes), enter the number of minutes before the CAPTCHA expires. When the CAPTCHA expires, the customer must reload the page to generate a new CAPTCHA.
-
Enter the Number of Symbols to appear in the CAPTCHA. Up to eight (
8
) symbols can be used. For a variable number of symbols that changes with each CAPTCHA, enter a range (such as5-8
). -
For Symbols Used in CAPTCHA, enter the letters (a-z and A-Z) and numbers (0-9) that you want to appear randomly in the CAPTCHA. The default set of characters does not include similar symbols such as
I
or1
. For best results, use symbols that users can readily identify. -
Set Case Sensitive to
Yes
if you want to require customers to enter the characters in upper- or lowercase exactly as shown in the CAPTCHA.
-
-
When complete, click Save Config.