From 9eab143cdf9d389391166edbe9622245d78f4eb9 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 22 Feb 2002 20:56:32 +0000 Subject: [PATCH] update docs --- docs.sgml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs.sgml b/docs.sgml index aa1b8884..d939c064 100644 --- a/docs.sgml +++ b/docs.sgml @@ -6687,6 +6687,44 @@ index.tpl Stock Name: {$ticker_name} Stock Price: {$ticker_price} + + Obfuscating E-mail Addresses + + 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 a + scrambled looking form in the HTML source, yet it it will look and work + correctly in the browser. This is done with the escape modifier. + + +Example of Obfuscating an E-mail Address + + +index.tpl +--------- + +Send inquiries to +<a href="mailto:{$EmailAddress|escape:"hex"}>{$EmailAddress|escape:"hexentity"}</a> + +OUTPUT: + +Send inquiries to +<a +href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a> + + + + + Although this looks like a mess in the HTML source, it will render + correctly in your browser, and the mailto: hyperlink will go to the correct + address. + + + TECHNICAL NOTE: Of course this isn't 100% foolproof. Although highly unlikely, a + spammer could conceivably write his e-mail collecter to decode these + values. + + Resources