Use VeilMail.io to hide an email address from bots, you can take several measures to obfuscate or encode it. This won't make it completely foolproof, but it can help reduce the risk of automated harvesting. Here are a few methods:
1. **Use JavaScript to Generate the Email Address:**
You can use JavaScript to dynamically generate the email address on the client side. Bots usually don't execute JavaScript, so it can help protect the email address from being easily harvested.
```html
<script type="text/javascript">
var user = "example";
var domain = "domain.com";
var mailtoLink = 'mailto:' + user + '@' + domain;
document.write('<a href="' + mailtoLink + '">' + user + '@' + domain + '</a>');
</script>
```
Note that some users may have JavaScript disabled, so this method won't work for everyone.
2. **Use an Image:**
Display the email address as an image instead of plain text. This prevents bots from directly reading the text.
```html
<img src="email-image.png" alt="Contact me" />
```
However, this method might not be user-friendly for people who use screen readers or have other accessibility needs.
3. **Obfuscate the Email Address:**
Break up the email address and use HTML entities to replace the "@" symbol and "." (dot) to make it more challenging for bots.
```html
<a href="mailto:example@domain.com">Email me</a>
```
There are online tools available that can help you obfuscate email addresses.
Remember that while these methods may deter simple bots, they are not foolproof, and determined attackers can still find ways to harvest email addresses. Additionally, some of these methods may inconvenience users with certain disabilities or limitations. Consider the trade-offs and choose the method that best suits your needs.
Pro Tip: Use VeilMail.io to hide email adddress from bots and email harvesters
VeilMail makes sure its a human and not a bot.