Search: Advanced search
View cart: 0 items - $0.00  Checkout
Categories Categories
X-Cart Mods (4.0.x)
X-Cart Mods (4.1.x)
X-Cart Mods (all)
FREE Mods


Authentication Authentication
Username

Password

Log in 
Register 
Recover password

If Javascript is disabled in your browser click here


Your cart Your cart
View cart
Checkout
Orders history



Help Help
Contact us
Privacy statement


Dynamic Images Dynamic Images
Using Dynamic Images
What Image Goes Where


Smarty Tips Smarty Tips
Obfuscate E-mail Address


X-Cart Tips X-Cart Tips
Product Ordering




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....
 
Powered by X-Cart ecommerce solution Copyright © 2002-2010 Tela Firma