
Obfuscate Email Address to avoid Spam
- December 7, 2015
- Leave a comment
In order to prevent spams and stop robots from reading plain text “mailto” links, it is suggested to obfuscate your email ID. This will stop robots from bombarding your email address with a lot of spam.
For instance, you have an email id “info@presstigers.com” which you want to show on your web page so that user can simply click on it to compose an email for this specific ID. You can use the following anchor tag in your HTML for this:
1 |
<a href=’mailto:info@presstigers.com’>info@presstigers.com</a> |
It is perfect but a little problem here is that robots can read this as plain text mailto link and bombard your email ID with spams. In order to avoid this, you have to obfuscate your email ID. Instead of simple mailto anchor, you should use the obfuscated code in your HTML. It’ll appear as a normal mailto anchor tag at front-end. Following is the obfuscated code of the email ID:
1 |
<a href='mailto:in%66%6F%40pr%65sstigers%2Ec%6F%6D'>info@presstigers.com</a> |
You can use this link in your HTML and it will generate a normal mailto anchor tag for front-end. Robots won’t be able to spam this email ID anymore. A lot of links are provided online where you can obfuscate your email ID. We’ll suggest you to use albionresearch.com for this purpose.
User Comments