Skip to content
Search engines 5511dd3

5 Tips for Hiding Your Email Address from Spammers

J

The author's views are entirely their own (excluding the unlikely event of hypnosis) and may not always reflect the views of Moz.

Table of Contents

J

5 Tips for Hiding Your Email Address from Spammers

The author's views are entirely their own (excluding the unlikely event of hypnosis) and may not always reflect the views of Moz.

I've been doing work on a website for one of our clients, and I noticed they followed a trend with their email address that I've seen a lot.  They were getting lots of spam at their contact email address, i.e. [email protected], so they replaced it with [email protected] as a last ditch method to stop the avalanche of spam.

While this works, it doesn't get to the root of the problem: if your email address is on the internet, spammers will get it.  But with that being said, there are a few tactics you can use to slow down your intake of spam.  Most of them are very simple, and take only a few seconds of your time.
  1. Choose non-generic email addresses
    I've run far too many domains and email addresses to not notice that if you have a [email protected], spammers will try to send email to it -- even if you don't have it set up.  So don't set it up!  Use more creative addresses such as [email protected], or [email protected].

  2. Don't have a "catch-all" email address
    You may also have a "catch-all" email address in place, so emails sent to any address @mydomain.com will show up in your inbox anyways.  Turn that off too.  Spammers will more than happily send email to generic/random addresses @mydomain.com, in hopes of scoring a hit.  Don't let that happen.

  3. Don't use your email for the domain registration
    If you register a domain name and use your email address for the registrant, administrative and/or technical contact email, you're just asking to get spam.  Yes, some sites like DNSStuff.com will censor your email address from a WHOIS request.  Yet still others, like Whois.net, won't.  Also, you can usually pay for a "unlisted" domain registration, what will keep your contact info private.

  4. Use online forms for email communication
    If you have the technical ability, allow your website visitors to contact you via email using an online form.  That way, the form sends the email to you and the visitor has no idea what address it's sending it to.  But be careful, online mail forms are tricky and can be subject to code injection.  This can lead to your sever actually sending out spam.

  5. Encrypt your email address
    If you must have your email address live on the web, don't just use a simple mailto: link -- you can encode it using JavaScript.  That way a web browser can display it correctly, but a spammer trying to scrape your site won't be able to read it.  Note: the spammer still may be able to extract your email address from the HTML code, but using this method makes it a lot harder.

    To do this, I'd recommend any one of the free online tools.  My personal favorite is Mailto Encoder.  Just use their system, fill in some variables, and you're done.  For instance, rather than have the usual mailto link, mailto:[email protected], you insert some custom JavaScript that builds your address dynamically for you.
If anyone else has some additional suggestions, feel free to share.
Back to Top

With Moz Pro, you have the tools you need to get SEO right — all in one place.

Read Next

The Mozbot Mashup: Roger Explores the World of Generative AI Imagery

The Mozbot Mashup: Roger Explores the World of Generative AI Imagery

Mar 07, 2023
One Secret to Improve SEO in 2021: Guestographics

One Secret to Improve SEO in 2021: Guestographics

Jul 21, 2021
Pop-Ups, Overlays, Modals, Interstitials, and How They Interact with SEO

Pop-Ups, Overlays, Modals, Interstitials, and How They Interact with SEO

Apr 28, 2017

Comments

Please keep your comments TAGFEE by following the community etiquette

Comments are closed. Got a burning question? Head to our Q&A section to start a new conversation.