How to Obfuscate an Anti-Spam Email in Webflow
Learn how to protect your email address from spam bots in Webflow with Base64 encoding.
In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to display an email address on your Webflow site without making it readable by spam bots.
Example
Understanding the problem
Spam bots crawl the web looking for email addresses in the HTML source code. A mailto: link or a plain-text email in your HTML will get collected within hours and added to spam lists. Obfuscation means hiding the email in the HTML so humans can see it, but bots can't.
1. Encode your email in Base64
In your browser console (F12), type:
Copy the result. That's your encoded email.
2. Add the element in a Webflow Embed
In an Embed, paste this HTML and replace the value of data-email with your encoded email:
3. Add the script in Footer code
The script decodes the email when the page loads and makes it clickable.
Conclusion
Base64 obfuscation is the simplest and most effective way to protect an email on a Webflow site. Use cases:
- Contact pages with a displayed email
- Footers with company contact details
- Team pages with employee emails
Click the email to open your mail client
Contact
Loading...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.















