TYPO3 has build in method to protect email links created with typolink API. This method protects only a href=”mailto:some@example.com” but does not protect the text inside link. So if the text itself is an email then protection is not working well. One solution is to always use <a>email</a> and not real email as link text. The second solution is to prepare tricky “email” html that the spider will be not able to parse correctly.
Here is the recipe how to transform anchor email text into some tricky html.
Put following settings into your Typoscript:
config.spamProtectEmailAddresses = 1 config.spamProtectEmailAddresses_atSubst = <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@" style="width:0;border:0"><i class="fake-at-sign"></i>
Add folowing CSS:
i.fake-at-sign:before {
content: '@';
}
If you now generate email link with TYPO3 API you should get:
<a href="javascript:linkTo_UnCryptMailto('nbjmup+uftuAfybnqmf\/dpn');">
test
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@" style="width:0;border:0">
<i class="fake-at-sign"></i>
example.com
</a>
If user will copy email to clipboard then everything is ok – correct email is copied. Aslo google shows correct email in googole search result description.

Moreover I would suggest to use base64 encoded image: