I have an issue that some crawlers that crawl the email address from my website and send spam emails.
Is there a way that allows the normal user to copy the email but not crawlers(That can't detect xxx@xxx.com format in the html source code)?
I tried the following solution, but none of them works while copying the email address:
Solution 1
Try copying this will not copy
@and.com
.name::after {
content: '@';
}
.mail::after {
content: '.com';
}
<span class="name">foo</span><span class="mail">gmail</span>
Solution 2
Try copying this makes
fooand@gmail.comreversed.
.mail {
display: inline-flex;
flex-direction: row-reverse;
}
<div class="mail">
<span>@gmail.com</span>
<span>foo</span>
</div>