E-commerce

How to protect your emails from spam on your online store?

How to protect your emails from spam on your online store?

October 31, 2026

Wondering how to protect your email addresses from spam bots? The essentials: several techniques exist, from plain text to form usage, which mask your address while remaining readable for visitors. The challenge lies in balancing security, accessibility, and SEO preservation. In this article, we break down the risks associated with exposing a plain address, then present the most effective solutions: the anchor text 'Send a message', masking via JavaScript, ROT13 encryption, secure forms, and best practices for accessibility and SEO. You will also discover how the Qstomy module simplifies all these actions. Program: risk, technique, implementation, SEO, accessibility, checklist, and FAQ. Prepare your store to resist scrapers while offering a smooth user experience. Additionally, you will learn how to leverage Qstomy filters to automate masking based on visitor type and measure the impact of each technique using integrated analytics reports.

Summary

What is the risk of displaying an email address in plain text?

Displaying an email address as plain text (example@domain.com) offers the best user experience: clicking opens the mail client directly. But it is also the ideal entry point for spam bots scanning HTML code to find patterns addresses. Once harvested, your address can be used to send spam, phishing attempts, or sold to third parties. This exposure harms your reputation and increases the volume of unwanted emails, which can reduce the deliverability of legitimate messages. In short, plain text is simple but highly vulnerable. This is compounded by the risk of being indexed in public databases, making cleanup nearly impossible without changing the address. By adopting robust DMARC and SPF policies, you further limit spammers' ability to spoof your domain while maintaining transparency with receiving servers.

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

How does the text 'Send a message' mask the address?

Replacing the visible address with a label such as 'Send a message' constitutes a first layer of obfuscation. The HTML code links this text to a real address via the mailto:attribute, but the displayed text reveals nothing to bots that only read visible content. Example: <a href="mailto:example@domain.com">Send a message</a>. This method remains user-friendly (direct click) while discouraging the most basic scrapers. However, more sophisticated bots analyzing the href attributes can still extract the address, so it must be combined with other protections for better results. You can add a small script that dynamically modifies the href attribute on hover, making extraction even more difficult. Additionally, you can hide the href attribute using CSS pseudo-elements combined with a small script that reconstructs the address only after the click, making extraction by bots nearly impossible.

How does JavaScript protect emails?

JavaScript allows generating the address at the moment of the click, making it invisible in the static source code. Robots that do not execute scripts will only see the link text (e.g., "Contact us") and will not be able to extract the address. A small code snippet, such as:
document.getElementById(’mail’).href="mailto:exemple@domaine.com"; injects the address into the DOM only when a visitor clicks. This technique is highly effective against most bots while maintaining a smooth user experience. Remember to include a fallback solution (e.g., text link) for users who have JavaScript disabled. You can also combine this method with light encryption to make the address unreadable even if the script is executed. For older browsers, provide a fallback text link displayed via <noscript> so that users without JavaScript can still reach you, while maintaining protection against scrapers.

What is ROT13 encryption and how to use it?

ROT13 consists of shifting each letter by 13 positions in the alphabet. Thus, exemple@domaine.com devient rkrzcyr@qbznavr.pbz. The encrypted text appears incomprehensible to robots scanning the HTML, but it can be decoded client-side using a small JavaScript script. The process takes two steps: first, generate the encrypted address using an online tool, then integrate the decoding code. Example script:
function rot13(s){return s.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<=’Z’?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});}
The link will display the decoded address upon clicking, while remaining hidden in the source code. This method remains simple to implement and requires no external libraries. However, note that ROT13 is not cryptographic encryption; it serves only as obfuscation and must be coupled with other measures like IP filtering or honeypots for reliable protection.

How to integrate ROT13 with JavaScript on your Shopify store?

On Shopify, add the ROT13 script in the file theme.liquid or via a custom HTML code block. Example:
<a href="#" id="mailLink" onclick=\"this.href="mailto:"+rot13('rkrzcyr@qbznavr.pbz');\">Send a message</a>.
The link text remains readable, and the address only appears when clicked. Ensure the script is placed before the link so it loads first. This solution maintains the simplicity of standard text while adding an extra layer of protection. Finally, always test your page on different browsers and validators to ensure the decoding works correctly. Also consider adding an attribute rel="noopener" to enhance security. Integrate this small module into a dedicated section file (e.g. email-protect.liquid) so you can reuse the same snippet across multiple product or collection pages without duplicating code.

Why opt for a contact form instead of displaying the address?

A contact form completely eliminates the visibility of the email address on the site. The visitor enters their name, address, and message, and the system sends it to you internally. This approach eliminates the risk of harvesting while offering a structured flow of information, facilitating customer follow-up. Additionally, forms allow adding verification fields (CAPTCHA) that block robots. You thus maintain secure communication without sacrificing the user experience. For Shopify merchants, many services like Foxyform or Email Me Form offer simple integration, with advanced customization options, real-time notifications, and the ability to connect data to a CRM.

What free contact form services are compatible with Shopify?

Several free solutions integrate easily with Shopify: Foxyform, 123ContactForm and Email Me Form. They allow you to create a customizable form (name, email, message) in a few clicks, then copy-paste the generated HTML code into your theme. Most offer built-in CAPTCHA and direct sending to your inbox or a CRM. These tools are ideal if you are looking to completely hide your address while maintaining a smooth communication channel. Remember to test the form on mobile, check auto-responses, and configure Slack or email notifications so you never miss a ticket.

How to maintain accessibility for users while protecting the email?

Accessibility should not be sacrificed for security. Always use attributes aria-label to describe the link or button, for example: <a href="#" aria-label="Send an email to example@domaine.com">Send a message</a>. This allows screen readers to convey the correct information to visually impaired users. Additionally, ensure the form has explicit labels and that keyboard navigation works. By following SEO optimization rules, you maintain your page visibility while adhering to accessibility standards. Check color contrast and button sizes to ensure a comfortable interaction on all devices.

What SEO best practices to keep when hiding emails?

Hiding emails should not impact your SEO. Use descriptive anchor text (e.g., "Contact support") instead of obfuscated addresses in links. Add tags rel="nofollow" if you do not want crawlers to follow the link mailto:. Also keep a /contact well-structured page with h1 and meta description optimized tags. Integrate relevant keywords in the text surrounding the form so search engines understand the context. Finally, regularly check that your pages do not return missing-page errors that would affect crawling. An updated sitemap including the contact page helps search engines index new content correctly.

What impact on email deliverability and customer support?

By reducing the visibility of your address, you lower the risk of spam and thus the bounce rate of your email campaigns. Less spam means a better sender reputation, which improves deliverability. On the customer support side, forms create automated tickets that can be integrated into your CRM or the Qstomy platform. You thus benefit from an exchange history, ticket prioritization, and faster responses, while protecting your main address from abuse. This organization also allows you to analyze request trends and adjust FAQs accordingly.

How Qstomy facilitates email address protection and customer service management?

Qstomy offers an intelligent module that automatically masks email addresses via client-side JavaScript rendering. The visitor always sees a "Contact us" link, but the actual address never appears in the HTML code. In addition to masking, Qstomy centralizes requests via a customer service dashboard where each message is recorded, categorized, and tracked. You can trigger automated responses, propose relevant upsells, and analyze performance through built-in metrics. This all-in-one solution reduces spam risk while improving your conversion rate and customer satisfaction, while remaining compatible with accessibility and SEO requirements.

What checklist before publishing your hidden contact page?

In short

  • Test the rendering on all browsers and devices.

  • Check accessibility with screen readers and keyboard.

  • Integrate Qstomy tracking to centralize messages.

  • Ensure SEO with descriptive links and meta tags.

  • Enable CAPTCHA on forms to block bots.

FAQ

  • Can JavaScript robots still retrieve my email? Most do not execute them, but it is advisable to add a CAPTCHA or honeypot.

  • Should I display my address in the footer? No, use a form or the Qstomy module to avoid any exposure.

Once the checklist is validated, publish your page with peace of mind. Remember to regularly monitor deliverability reports and adjust your protections if new threats emerge.

To go further: SEO for e-commerce sites: strategies that really work - Qstomy, AI chatbot for unavailable payment methods: offer an alternative without losing the sale - Qstomy, Integrating CS responses into a useful e-commerce SEO strategy for customers - Qstomy, How to create a payment gateway for an e-commerce site? - Qstomy, How to optimize an e-commerce site for Google (step-by-step guide) - Qstomy, Pre-purchase questions in e-commerce: the 30 objections to address on your site - Qstomy, Product compatibility: check before purchase to avoid errors and returns - Qstomy.

Enzo

October 31, 2026

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.