|
| Obfuscate E-mail Address |
Do you ever wonder how your E-mail address gets on so many spam mailing lists? One way spammers collect E-mail addresses is from web pages. To help combat this problem, you can make your E-mail address show up in scrambled JavaScript in the HTML source, yet it will look and work correctly in the browser. This is done with the {mailto} plugin.
There are places within X-Cart that you would like to have your e-mail address and also have it clickable, making it easier for customers to send you an email. Most of us have stopped doing this because of spammers. They collect e-mail addresses from web sites and use them to spoof sending out spam or even get your email address on spam lists, flooding your inbox.
To help alleviate this and still be able to provide a clickable link for your customers, there is a built in Smarty function that will obfuscate (scramble) your e-mail address using JavaScript. This allows the address to show properly to the customer, but will look like scrambled code when viewing the HTML.
To do this, use the {mailto} plugin.
The syntax for this in X-Cart would be:
{mailto address="your@email.address encode="javascript" subject="Your E-Mail Subject"}
The way this would look when viewing the HTLP would be:

While this method isn't 100% foolproof it is a good practice. A spammer could conceivably program his e-mail collector to decode these values, but not likely....
|
|
|