HostGator Web Hosting Help

Hiding email address from harvester bots, spiders, etc.

Summary

If you believe that your email address has been harvested (taken off your site and sold to spammers). You can hide your email address, but still have people email you?

Hiding your email address

You will need to add this code into your page where you have your email listed. This will require a little bit of Javascript but it is easy. Here is the code that you will need to paste into your code and then modify.

            <script language="javascript">
            function m_sfcon (u) {
                pre = "mail";
                url = pre + "to:" + u;
                document.location.href = url + "@your-domain-name.com";
            }
            </script>
            
            <a href="javascript:m_sfcon('YOUR-EMAIL-PREFIX-GOES-HERE')">Email Me</a>
            
If your email is bob@example.com, you would change the "your-domain-name.com" to "example.com" and "YOUR-EMAIL-PREFIX-GOES-HERE" would be changed to bob.



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Getting spammed? What does HostGator recommend?
Knowledgebase Article 466,470 views tags: email filter spam

Explanation of how spam works and common prevention tips
Knowledgebase Article 278,604 views tags: email spam webmail

How does Spam Hammer work?
Knowledgebase Article 200,271 views tags: email filter hammer spam

Related Help Content

Most people use email every day, if not multiple times a day; so it’s safe to say that email marketing is good for business. In fact, a recent study showed that email marketing is almost 40 times more effective in new customer acquisition than Facebook and Twitter combined!
Knowledgebase Article 180,087 views tags: Contact campaign constant email law marketing spam subscribers

SPAM is a brand of canned mystery meat made by Hormel Foods Corporation. It was first introduced in...oh wait, different kind of spam—but still related to email spam because they share similar characteristics, like nobody wants it or ever asks for it. Email spam is electronic junk mail or more gen
Knowledgebase Article 123,823 views tags: filter spam spamassassin spamexperts

General Instructions on how to use the spam folder with webmail
Knowledgebase Article 230,245 views tags: email spam spamassassin webmail

If you find some of your emails end up your recipients Spam folder, arrive late, or sometimes don't arrive at all, this article can help you improve the deliverability of the messages you are sending.
Knowledgebase Article 276,623 views tags: delivery email filters receiving sending working

Explanation of what SpamAssassin is and how it works
Knowledgebase Article 227,520 views tags: assassin email spam

There are a large number of emails or spam that need to be deleted from an email account.
Knowledgebase Article 299,514 views tags: delete email emails empty inbox spam trash

Oh spam, sometimes it seems like we'll never get rid of you.
Knowledgebase Article 292,372 views tags: email filtering spam spamexperts virus

How to restore Email Messages the Site Backup Pro tool
Knowledgebase Article 243,486 views tags: backup email forwarders restore site