Lorixen.
EN

Email address on your website attracting spam? What to do

Short answer: Any email address published in plain text on your website, especially in a mailto: link, can be collected by bots and added to spam lists. You don't have to hide your contact details to avoid it. Use a role address like hello@ rather than personal addresses, publish it with light obfuscation or through a service that hides it from bots but not people, offer a contact form with spam protection, and rely on good spam filtering in your mailbox. Avoid tricks that make the address unusable for real customers or screen reader users.

Why published addresses attract spam

The specification for mailto: links, RFC 6068, states directly that mailto URIs on public web pages expose mail addresses for harvesting, including any addresses in the link's bcc field. Cloudflare's documentation on email address obfuscation describes the same problem: email harvesters and other bots roam the internet looking for email addresses to add to spam lists.

Once an address is on those lists, it's very hard to get it off. That's a strong reason to choose carefully which address you publish.

Step 1: Publish a role address, not a person's

  • Use an address like hello@, info@, enquiries@ or bookings@, delivered to whoever handles enquiries.
  • Keep staff members' personal work addresses off public pages.
  • If the role address becomes overwhelmed by spam, you can replace it with a new one without changing anyone's personal email.

Role addresses also survive staff changes: customers keep writing to the same address when people leave.

Step 2: Choose a sensible obfuscation approach

Obfuscation means making the address harder for bots to read while keeping it easy for people. Options, from simplest:

  • CDN or hosting features. Cloudflare's documentation explains that its email obfuscation replaces visible addresses in the HTML with placeholder links and uses a script to show the real address to visitors, with no visible change for humans. Similar features exist elsewhere. Note its documented limitations, such as not working with a no-transform cache header.
  • Script-assembled addresses. A small script builds the address in the browser. It stops simple harvesters but not bots that run JavaScript.
  • HTML entity encoding. Weak protection, but harmless.

Avoid:

  • Images of email addresses. Screen readers can't read them, customers can't tap or copy them, and they look dated.
  • "name [at] domain [dot] com". Confusing for customers, and many bots decode it anyway.

Whatever you choose, test that the address can be tapped on a phone, copied, and read by a screen reader.

Step 3: Offer a contact form too

A contact form keeps your address out of the page entirely and lets you ask for the information you need, such as order number or preferred contact time. Protect it with honeypot fields, rate limiting or a low-friction challenge, and make sure form submissions reach a monitored inbox reliably.

Many customers still prefer email, so a form works best alongside an address, not instead of one.

Step 4: Rely on mailbox filtering

No obfuscation is perfect, and addresses leak through other channels: business directories, invoices, email signatures, social profiles. Your email provider's spam filtering does most of the work. Help it:

  • Mark spam as spam rather than deleting it, so filters learn.
  • Set up rules for common patterns your business receives.
  • Keep an eye on the spam folder for genuine enquiries caught by mistake.

Step 5: Watch for spoofing, not just spam

Spam sent to your address is a nuisance. Spam sent pretending to be from your domain damages your reputation. Make sure your domain has SPF, DKIM and DMARC set up so receivers can reject forged messages using your domain.

Places to check on your site

  • Contact and about pages.
  • Footer, which appears on every page.
  • Team pages listing staff.
  • PDF brochures and price lists, which are harvested too.
  • Old blog posts and press releases.

Structured data and directories

Many businesses add their email address to structured data on the contact page, or list it on maps, directories and review sites. That helps customers find you, but those listings are public and scraped too. Use the same role address everywhere, so if it ever has to change you know every place to update. Keep a short list of where your contact details are published, including social profiles and supplier portals.

Make replies easy for customers

Whichever approach you choose, the goal is still to hear from customers. Show the address prominently on the contact page, state when you usually reply, and give an alternative such as a phone number for urgent matters. If you use a contact form, send an automatic acknowledgement with a reference so customers know their message arrived, and make sure replies come from an address they can answer. A spam-free inbox is no use if genuine customers give up trying to reach you.

Review once a year

Spend ten minutes each year searching your own site and PDFs for email addresses, checking that only role addresses appear and that obfuscation still works after any redesign or hosting change.

An illustrative example

A hypothetical Invercargill architecture practice listed every staff member's email on its team page, and one partner's inbox received hundreds of spam emails a day. The practice switched to a single studio@ address on the website, enabled its CDN's email obfuscation, added a contact form with a honeypot field, removed personal addresses from the team page and old PDFs, and tested the address on a phone and with a screen reader. Spam to personal inboxes dropped over the following months as old lists aged.

FAQ

Will obfuscation stop all spam?

No. It reduces harvesting from your site; filtering handles the rest.

Does hiding my email hurt SEO?

Not meaningfully. Make contact information clear to people.

Should I remove my address entirely?

Usually not. Customers trust businesses that are easy to contact.

Can I change my published address later?

Yes. Forward the old one for a while, then retire it.

If your business inbox is drowning in spam from your website, tell us where your address appears.

Sources

WhatsAppBook a call