{"id":1297,"date":"2021-02-03T12:42:40","date_gmt":"2021-02-03T12:42:40","guid":{"rendered":"https:\/\/ccbill.com\/kb\/?p=1297"},"modified":"2023-03-07T12:06:04","modified_gmt":"2023-03-07T12:06:04","slug":"magento-contact-captcha","status":"publish","type":"post","link":"https:\/\/ccbill.com\/kb\/magento-contact-captcha","title":{"rendered":"How to Add CAPTCHA to Magento Contact Forms"},"content":{"rendered":"\n<p class=\"h3\">Introduction<\/p>\n\n\n\n<p>CAPTCHA prevents software that imitates human behavior (<strong>bots<\/strong>) to access and use services intended for genuine human users.<\/p>\n\n\n\n<p>Automated and malicious bots are used to initiate&nbsp;<a target=\"_blank\" href=\"https:\/\/phoenixnap.com\/blog\/prevent-ddos-attacks\" rel=\"noreferrer noopener\">DoS and DDoS attacks<\/a>, spam,&nbsp;<a target=\"_blank\" href=\"https:\/\/phoenixnap.com\/blog\/brute-force-attack\" rel=\"noreferrer noopener\">brute-force attacks<\/a>, content scraping, click fraud, and inventory hoarding.<\/p>\n\n\n\n<p>By adding CAPTCHA to the Magento contact form, you eliminate spam and block bots from overwhelming your <a href=\"https:\/\/ccbill.com\/industries\/ecommerce\" target=\"_blank\" rel=\"noreferrer noopener\">eCommerce <\/a>store or using contact forms as a gateway to compromise core services.<\/p>\n\n\n\n<p>Learn <strong>how to add CAPTCHA to Contact Forms in Magento 2.4 <\/strong>and stop malicious activity on your website.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\" alt=\"Customer completeing CAPTCHA challenge in Magento store.\" class=\"wp-image-1307\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form-300x150.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Add CAPTCHA to the Magento Contact Form<\/h2>\n\n\n\n<p>Contact forms help customers get in touch with your store if they have questions or need assistance. These forms typically receive lots of traffic, and adding the CAPTCHA is an efficient way to verify user activity.<\/p>\n\n\n\n<p>There are two ways to add CAPTCHA verification in Magento without any additional coding:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enable built-in CAPTCHA verification in Magento.<\/li>\n\n\n\n<li>Integrate Google reCAPTCHA. <\/li>\n<\/ol>\n\n\n\n<p>The examples in the article are presented using <strong>Magento 2.4.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enable Default CAPTCHA in Magento<\/h2>\n\n\n\n<p>Use the built-in CAPTCHA feature in Magento to configure CAPTCHA for admin users and multiple storefront forms, including the <strong>Contact Us<\/strong> form.<\/p>\n\n\n\n<p>To enable and set up CAPTCHA in Magento 2.4:<\/p>\n\n\n\n<p>1. Access the Magento admin.<\/p>\n\n\n\n<p>2. Expand the <strong>Stores<\/strong> menu. <\/p>\n\n\n\n<p>3. Click <strong>Configuration <\/strong>in the <em>Settings<\/em> section.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"422\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-stores-configuration.png\" alt=\"Access Configuration menu in Magento.\" class=\"wp-image-1299\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-stores-configuration.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-stores-configuration-300x158.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-stores-configuration-768x405.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>4. Open the <strong>Customer Configuration<\/strong> menu in the <em>Customers<\/em> tab.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"492\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/customer-configuration-magento.png\" alt=\"Customer Configuration section in Magento needed to enable CAPTCHA.\" class=\"wp-image-1308\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/customer-configuration-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/customer-configuration-magento-300x185.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/customer-configuration-magento-768x472.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>5. Uncheck the <strong>Use system value<\/strong> box next to the <em>Forms<\/em> field.<\/p>\n\n\n\n<p>6. Press <strong>Ctrl<\/strong> and click the <strong>Contact Us<\/strong> option. Add CAPTCHA to other forms if necessary.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"362\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/add-contact-us-captcha-magento.png\" alt=\"Add CAPTCHA to Contact Us form in Magento.\" class=\"wp-image-1305\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/add-contact-us-captcha-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/add-contact-us-captcha-magento-300x136.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/add-contact-us-captcha-magento-768x348.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>7. Optionally, change default system values such as the CAPTCHA character type and the number of symbols.<\/p>\n\n\n\n<p>8. Click <strong>Save Config<\/strong> to apply the CAPTCHA settings.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"445\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-captcha-settings.png\" alt=\"Edit CAPTCHA settings in Magento.\" class=\"wp-image-1298\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-captcha-settings.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-captcha-settings-300x167.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/magento-captcha-settings-768x427.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>To see the changes in the storefront, do not forget to <a href=\"https:\/\/ccbill.com\/kb\/magento-install-new-theme#ftoc-heading-8\" target=\"_blank\" rel=\"noreferrer noopener\">flush the Magento cache<\/a>. The CAPTCHA section is located at the bottom of the Contact Us form.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"531\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-contuct-us-luma-magento.png\" alt=\"CAPTCHA section on Magento website.\" class=\"wp-image-1306\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-contuct-us-luma-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-contuct-us-luma-magento-300x199.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-contuct-us-luma-magento-768x510.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>The look and location of the CAPTCHA varies based on theme and configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Google reCAPTCHA to Magento<\/h2>\n\n\n\n<p>The additional step customers take to pass a CAPTCHA challenge might negatively impact their experience. Google reCAPTCHA uses machine learning to track customer behavior and identify suspicious activity without direct customer input. <\/p>\n\n\n\n<p>Magento is compatible with Google reCAPTCHA.<\/p>\n\n\n\n<p>Google offers several reCAPTCHA types:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>reCAPTCHA v3<\/strong>.  An algorithm calculates a score based on user behavior and determines if a user is human. The entire background process is invisible to the customer.<\/li>\n\n\n\n<li><strong>reCAPTCHA v2<\/strong>. Introduces a challenge to verify users, such as the <strong>\u201cI\u2019m not a robot\u201d<\/strong> checkbox or identifying specific images.<\/li>\n<\/ul>\n\n\n\n<p>To set up reCAPTCHA on Magento, register your website and retrieve the Google reCAPTCHA API keys.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Retrieve Google reCAPTCHA API Keys<\/h3>\n\n\n\n<p>Before proceeding, decide which type of reCAPTCHA you want to implement. Keep in mind that <a href=\"https:\/\/ccbill.com\/kb\/what-is-an-api-key\" target=\"_blank\" rel=\"noreferrer noopener\">API keys<\/a> are type specific. This guide explains how to implement <strong>Google reCAPTCHA v3<\/strong> to track user behavior and automatically determine risk levels without customer interaction.<\/p>\n\n\n\n<p>To create and retrieve the Google reCAPTCHA API keys:<\/p>\n\n\n\n<p>1. Visit the <a href=\"https:\/\/www.google.com\/recaptcha\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">official Google reCAPTCHA page<\/a> and access the <strong>Admin Console<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"364\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-admin-console.png\" alt=\"Google reCAPTCHA Admin Console.\" class=\"wp-image-1310\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-admin-console.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-admin-console-300x137.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-admin-console-768x349.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>2. &nbsp;Click the <strong>+<\/strong> sign to register your website.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"350\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-website-google-recaptcha.png\" alt=\"Create new reCAPTCHA registration.\" class=\"wp-image-1301\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-website-google-recaptcha.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-website-google-recaptcha-300x131.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-website-google-recaptcha-768x336.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>2. An internal <strong>Label<\/strong> helps you identify the API key pair, for example, <em>Magento Test reCAPTCHA v3<\/em>.<\/p>\n\n\n\n<p>3. Select the <strong>reCAPTCHA type<\/strong>.<\/p>\n\n\n\n<p>4. Type the domain of the storefront in the <strong>Domain<\/strong> field. Enter additional domains and subdomains on a separate line.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"462\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-registration.png\" alt=\"Select Google reCAPTCHA type.\" class=\"wp-image-1312\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-registration.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-registration-300x173.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-registration-768x444.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>5. Enter a contact email or emails in the <strong>Owners<\/strong> field.<\/p>\n\n\n\n<p>6. <strong>Accept the reCAPTCHA Terms of Service<\/strong> by checking the box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"462\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-accept-terms.png\" alt=\"Accept reCAPTCHA terms and services.\" class=\"wp-image-1311\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-accept-terms.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-accept-terms-300x173.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/google-recaptcha-contact-site-accept-terms-768x444.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>7. Select the <strong>Send alerts to owners<\/strong> checkbox to send an email notification if the system identifies suspicious traffic.<\/p>\n\n\n\n<p>8. Click<strong> Submit<\/strong> to complete the registration.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"477\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/submit-google-recaptcha-request.png\" alt=\"Submit reCAPTCHA registration request.\" class=\"wp-image-1304\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/submit-google-recaptcha-request.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/submit-google-recaptcha-request-300x179.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/submit-google-recaptcha-request-768x458.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>Once the registration process is complete, the system generates a unique <strong>Site Key<\/strong> and a <strong>Secret Key<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"445\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-google-recaptcha-keys.png\" alt=\"Copy reCAPTCHA API keys.\" class=\"wp-image-1300\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-google-recaptcha-keys.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-google-recaptcha-keys-300x167.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/register-google-recaptcha-keys-768x427.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>To integrate Google reCAPTCHA, it is necessary to copy and paste the API keys in the Magento admin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Google reCAPTCHA in Magento<\/h3>\n\n\n\n<p>To add the Google reCAPTCHA API keys in Magento:<\/p>\n\n\n\n<p>1. Access the Magento dashboard and click the <strong>Stores<\/strong> tab.<\/p>\n\n\n\n<p>2. Select <strong>Configuration<\/strong> in the <em>Settings<\/em> submenu.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"469\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/stores-magento-configure-recaptcha.png\" alt=\"Configure Magento for Google reCAPTCHA.\" class=\"wp-image-1303\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/stores-magento-configure-recaptcha.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/stores-magento-configure-recaptcha-300x176.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/stores-magento-configure-recaptcha-768x450.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>3. Access the <em>Security<\/em> tab and select the <strong>Google reCaptcha<\/strong> option.<\/p>\n\n\n\n<p>4. Expand the <em>General<\/em> section and paste the <strong>Google API website key<\/strong> and the <strong>Google API secret key <\/strong>in their respective fields. <\/p>\n\n\n\n<p>5. Uncheck the <em>Use system value<\/em> box and ensure the correct <strong>reCaptcha type<\/strong> is selected.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"385\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/general-recaptcha-settings-magento-api-keys.png\" alt=\"Paste reCAPTCHA API keys in Magento admin.\" class=\"wp-image-1309\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/general-recaptcha-settings-magento-api-keys.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/general-recaptcha-settings-magento-api-keys-300x144.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/general-recaptcha-settings-magento-api-keys-768x370.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>6. Expand the <em>Frontend<\/em> section and <strong>Enable<\/strong> reCAPTCHA. <\/p>\n\n\n\n<p>7.&nbsp; Clear the <em>Use system value<\/em> checkbox and enable the <strong>Use in Contact <\/strong>option.<\/p>\n\n\n\n<p>8. Click <strong>Save Config<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/save-config-contact-us-form-magento-recaptcha.png\" alt=\"Save CAPTCHA configuration in Magento.\" class=\"wp-image-1302\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/save-config-contact-us-form-magento-recaptcha.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/save-config-contact-us-form-magento-recaptcha-300x150.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/save-config-contact-us-form-magento-recaptcha-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>9. Flush Magento cache to apply the configuration.<\/p>\n\n\n\n<p>Log in to the Google reCAPTCHA Admin Console to monitor statistics and user verification scores.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<p><strong>Note: <\/strong>The security of your Magento store is paramount for you and your customers. Having an SSL on your Magento store is a crucial security implementation. Read our tutorial <a rel=\"noreferrer noopener\" href=\"https:\/\/ccbill.com\/kb\/magento-ssl\" target=\"_blank\">How to Install an SSL Certificate in Magento 2<\/a>. Also, consider <a href=\"https:\/\/ccbill.com\/kb\/magento-change-admin-url\" target=\"_blank\" rel=\"noreferrer noopener\">changing your Magento admin URL<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<p class=\"h3\">Conclusion<\/p>\n\n\n\n<p>You have successfully added and configured CAPTCHA verification in Magento. The risk of spam and other malicious bot activity in your store is reduced significantly.<\/p>\n\n\n\n<p>Using advanced systems like Google reCAPTCHA can enhance security and improve customer experience.<\/p>\n\n\n\n<p>Explore other advanced <a rel=\"noreferrer noopener\" href=\"https:\/\/ccbill.com\/kb\/payment-authentication-methods\" target=\"_blank\">authentication methods<\/a> and find out how to secure online payments on your website. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutorial explains how to implement the built-in Magento CAPTCHA feature as well as the Google reCAPTCHA tool.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,17,14],"tags":[],"class_list":["post-1297","post","type-post","status-publish","format-standard","hentry","category-e-commerce","category-online-security","category-web-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add CAPTCHA to Magento Contact Forms | CCBill KB<\/title>\n<meta name=\"description\" content=\"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add CAPTCHA to Magento Contact Forms | CCBill KB\" \/>\n<meta property=\"og:description\" content=\"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\" \/>\n<meta property=\"og:site_name\" content=\"CCBill Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ccbillBIZ\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-03T12:42:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-07T12:06:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\" \/>\n<meta name=\"author\" content=\"Vladimir Kaplarevic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:site\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vladimir Kaplarevic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#article\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\"},\"author\":{\"name\":\"Vladimir Kaplarevic\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\"},\"headline\":\"How to Add CAPTCHA to Magento Contact Forms\",\"datePublished\":\"2021-02-03T12:42:40+00:00\",\"dateModified\":\"2023-03-07T12:06:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\"},\"wordCount\":845,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\",\"articleSection\":[\"eCommerce Tutorials\",\"Online Security\",\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\",\"url\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\",\"name\":\"How to Add CAPTCHA to Magento Contact Forms | CCBill KB\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\",\"datePublished\":\"2021-02-03T12:42:40+00:00\",\"dateModified\":\"2023-03-07T12:06:04+00:00\",\"description\":\"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.\",\"breadcrumb\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ccbill.com\/kb\/magento-contact-captcha\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png\",\"width\":800,\"height\":400,\"caption\":\"Customer completeing CAPTCHA challenge in Magento store.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-contact-captcha#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"KB Home\",\"item\":\"https:\/\/ccbill.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"eCommerce Tutorials\",\"item\":\"https:\/\/ccbill.com\/kb\/category\/e-commerce\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add CAPTCHA to Magento Contact Forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ccbill.com\/kb\/#website\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"name\":\"CCBill Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ccbill.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\",\"name\":\"CCBill\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"width\":160,\"height\":70,\"caption\":\"CCBill\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ccbillBIZ\/\",\"https:\/\/x.com\/CCBillBIZ\",\"https:\/\/www.linkedin.com\/company\/ccbill\",\"https:\/\/www.youtube.com\/c\/CCBillBiz\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\",\"name\":\"Vladimir Kaplarevic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"caption\":\"Vladimir Kaplarevic\"},\"description\":\"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add CAPTCHA to Magento Contact Forms | CCBill KB","description":"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ccbill.com\/kb\/magento-contact-captcha","og_locale":"en_US","og_type":"article","og_title":"How to Add CAPTCHA to Magento Contact Forms | CCBill KB","og_description":"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.","og_url":"https:\/\/ccbill.com\/kb\/magento-contact-captcha","og_site_name":"CCBill Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/ccbillBIZ\/","article_published_time":"2021-02-03T12:42:40+00:00","article_modified_time":"2023-03-07T12:06:04+00:00","og_image":[{"url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png","type":"","width":"","height":""}],"author":"Vladimir Kaplarevic","twitter_card":"summary_large_image","twitter_creator":"@CCBillBIZ","twitter_site":"@CCBillBIZ","twitter_misc":{"Written by":"Vladimir Kaplarevic","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#article","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha"},"author":{"name":"Vladimir Kaplarevic","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644"},"headline":"How to Add CAPTCHA to Magento Contact Forms","datePublished":"2021-02-03T12:42:40+00:00","dateModified":"2023-03-07T12:06:04+00:00","mainEntityOfPage":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha"},"wordCount":845,"commentCount":0,"publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"image":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png","articleSection":["eCommerce Tutorials","Online Security","Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ccbill.com\/kb\/magento-contact-captcha#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha","url":"https:\/\/ccbill.com\/kb\/magento-contact-captcha","name":"How to Add CAPTCHA to Magento Contact Forms | CCBill KB","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage"},"image":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png","datePublished":"2021-02-03T12:42:40+00:00","dateModified":"2023-03-07T12:06:04+00:00","description":"Find out how to add a CAPTCHA to your Magento contact form. Lots of detailed images guide you every step of the way.","breadcrumb":{"@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ccbill.com\/kb\/magento-contact-captcha"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#primaryimage","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/captcha-magento-contact-form.png","width":800,"height":400,"caption":"Customer completeing CAPTCHA challenge in Magento store."},{"@type":"BreadcrumbList","@id":"https:\/\/ccbill.com\/kb\/magento-contact-captcha#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"KB Home","item":"https:\/\/ccbill.com\/kb\/"},{"@type":"ListItem","position":2,"name":"eCommerce Tutorials","item":"https:\/\/ccbill.com\/kb\/category\/e-commerce"},{"@type":"ListItem","position":3,"name":"How to Add CAPTCHA to Magento Contact Forms"}]},{"@type":"WebSite","@id":"https:\/\/ccbill.com\/kb\/#website","url":"https:\/\/ccbill.com\/kb\/","name":"CCBill Knowledge Base","description":"","publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ccbill.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ccbill.com\/kb\/#organization","name":"CCBill","url":"https:\/\/ccbill.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","width":160,"height":70,"caption":"CCBill"},"image":{"@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ccbillBIZ\/","https:\/\/x.com\/CCBillBIZ","https:\/\/www.linkedin.com\/company\/ccbill","https:\/\/www.youtube.com\/c\/CCBillBiz"]},{"@type":"Person","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644","name":"Vladimir Kaplarevic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","caption":"Vladimir Kaplarevic"},"description":"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies."}]}},"_links":{"self":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/comments?post=1297"}],"version-history":[{"count":17,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1297\/revisions"}],"predecessor-version":[{"id":4893,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1297\/revisions\/4893"}],"wp:attachment":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/media?parent=1297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/categories?post=1297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/tags?post=1297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}