Shopify Theme Detector » How to set up a Shopify store in 2026? » Getting Started with Shopify: Everything You Need to Know » How to set up a Shopify store in 2026? » Shopify Safety and Security » How to Add Captcha on your Shopify Blog
How to Add Captcha on your Shopify Blog
Last modified: August 13, 2026
Shopify does not add CAPTCHA to your contact form or blog comment section by default. That means bots can submit your contact form, flood blog comments with spam links, and in some cases trigger repeated fake account signups. This guide covers how to add CAPTCHA protection to each of those areas, what Shopify already handles on your behalf, and which approach makes the most sense depending on your store’s setup.
Does Shopify Have Built-In CAPTCHA?
Shopify includes some bot protection, but it is limited to specific parts of the platform. The checkout process and customer account login pages have Shopify’s own fraud detection running in the background. You do not need to add CAPTCHA to those pages yourself.
What Shopify does not protect automatically:
- The native contact form (the one created by the
contactpage template) - Blog comment submission forms
- Customer account registration (though Shopify does rate-limit signups)
- Any custom form you have added via Liquid or a third-party app
That gap is where most Shopify merchants run into spam problems. A store might go months without issues, then suddenly start receiving dozens of fake contact form submissions or comment spam on blog posts. The solution is different depending on which form is being targeted.
How to Add CAPTCHA to Your Shopify Contact Form
Shopify’s default contact form is rendered through a Liquid template, and the platform does not give you a native way to attach Google reCAPTCHA to it. There are two practical routes: use a third-party form app that includes CAPTCHA, or add a honeypot field to the existing form via Liquid.
Option 1: Replace the Contact Form with a CAPTCHA-Enabled App
The simplest path is to install a contact form app from the Shopify App Store that includes built-in spam protection. Apps in this category typically offer Google reCAPTCHA v3 (invisible, no checkbox required) or v2 (the “I am not a robot” checkbox), along with honeypot fields and IP-based filtering.
When choosing an app, look for these features:
- Google reCAPTCHA v3 support (invisible, so it doesn’t interrupt real users)
- Honeypot field included by default
- Email notifications with spam scoring
- Ability to match the style of your existing theme
After installing, you’ll disable the default Shopify contact page template and point the contact page to the app’s form instead. Most apps walk you through this in their setup flow.
Option 2: Add a Honeypot Field to the Native Contact Form
If you prefer not to add an app, you can modify the native contact form in your theme’s Liquid files to include a hidden honeypot field. Bots fill in every field they see, including hidden ones, while real users never touch them. The server-side check then rejects any submission where the honeypot field has a value.
Here is how to add a basic honeypot to the Shopify contact form:
- In your Shopify admin, go to Online Store, then Themes.
- Click the three-dot menu next to your active theme and select Edit code.
- Open the
contact.liquidtemplate (orsections/contact-form.liquiddepending on your theme). - Find the opening
tag and add this hidden field inside it:
This approach won’t stop sophisticated bots, but it blocks the vast majority of automated form spam with zero impact on real visitors. It works because simple bots parse the DOM and fill every input they find, regardless of whether it’s visible.
Note that Shopify’s backend does not process the honeypot check for you. If you go this route, you’ll need the form submission to pass through a server-side script that checks the honeypot value before forwarding to Shopify’s form handler. This is more complex and is one reason most merchants prefer the app route for contact form protection.
How to Add CAPTCHA to Shopify Blog Comments
If your Shopify theme has blog comments enabled, you can add a math-based CAPTCHA directly to the comment form by editing the article.liquid template. This approach has been used by Shopify merchants for years and still works on themes that support blog comments.
Here is the step-by-step process:
Step 1 - Log In to Shopify
Log into your Shopify admin panel using your store credentials.
Step 2 - Open the Theme Code Editor
Go to Online Store in the left sidebar, then click Themes. Next to your active theme, click the three-dot menu and select Edit code. This opens the template file editor.
Step 3 - Edit article.liquid
In the left file browser, look for the article.liquid file under the Templates folder (some themes place it under Sections as article.liquid or main-article.liquid). Click the file to open it.
Find the blog comment form section within the file. You need to add the following JavaScript above or just before the closing