An email address like firstname.lastname@example.org can
be written as yourid@antispam_yourdomain.com. In
this format the user has to neglect the characters
"antispam_" so that he can get a valid email address
to send emails. In this method the user should be
informed of how to use the email address. A short
description should be given to the use on how to
use the email address given in the web page. We
cannot ensure that each and every user will read
the information and use the email address in a proper
format. This method also disallows the spambots
from harvesting the emails from your website. We
cannot expect all the users to be experienced in
finding out this information. Most of them would
like to just click the link to an email address
and send an email. For such user this method will
not be user-friendly.
Another way to prevent spambots from harvesting
is given below, which can be used to encode the
// End -->
By using the above code you can avoid spambots
by harvesting emails. One of the disadvantages of
browser. The given code above is only one format
to encode the mailto link. If you are not an expert
are user-friendly forms available in lots of websites
that can be used to generate the script for you.
Try using these forms and generate the script needed
for your requirements.
URL encode your email address
URL encoding the email address is one another way to prevent spambots from harvesting your email addresses. For example you can use the string "%2E" for ".", in URL encoding. The equivalent for '@' is "%40" in URL encoding. Now-a-days spambots are getting more intelligent to even interpret this type of encoding. This can prevent you in preventing certain types of spambots.
Character entity encoding is a way to encode the
entire email address or parts of the email address
so that the spambots do not recognize that is there
in the <a> tag of the html. For example you
can encode the email address email@example.com
in to something like:
using character encoding. In this method each and
every character in the email address is encoded
so that spambots cannot find the email address.
When displayed in the web page the above encoding
is interpreted as <a href=”mailto:firstname.lastname@example.org”></a>
by the browser. But the spambots would not recognize
that. You need not be an expert to encode your email
address in this form. You can use tools like Email
encoder available at http://www.proles.net/emailencoder/.