How to show email addresses on the website to avoid spams?

后端 未结 12 1157
醉酒成梦
醉酒成梦 2020-12-23 19:18

I show email on my website as following

 Email

But I read the following while analysing

12条回答
  •  难免孤独
    2020-12-23 19:23

    I've been using CloudFlare's free Email Address Obfuscation feature: https://support.cloudflare.com/hc/en-us/articles/200170016-What-is-Email-Address-Obfuscation-

    Email harvesters and other bots roam the Internet looking for email addresses to add to lists that target recipients for spam. This trend results in an increasing amount of unwanted email.

    Web administrators have come up with clever ways to protect against this by writing out email addresses (i.e., help [at] cloudflare [dot] com) or by using embedded images of the email address. However, you lose the convenience of clicking on the email address to automatically send an email.

    By enabling Cloudflare Email Address Obfuscation, email addresses on your web page will be obfuscated (hidden) from bots, while keeping them visible to humans. In fact, there are no visible changes to your website for visitors.

    To prevent unexpected website behavior, email addresses are not obfuscated when they appear in:

    • Any HTML tag attribute, except for the href attribute of the a tag.
    • Other HTML tags
    • Any page that does not have a MIME type of "text/html" or "application/xhtml+xml"

    I'm not affiliated with CloudFlare. I just appreciate all that they offer for free.

提交回复
热议问题