|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Thu Jul 08, 2010 11:01 am Post subject: Loose and strong email address ecurity |
|
|
I am referring two plugins here, modifier.email.php and modifier.HTMLSpamFilter.php. See the source codes.
Code: | <?php
$smarty->assign('email', 'email@domain.tld');
?> |
Loosely protected email address, by replacing dot and at signs. TPL:
It produces: email(at)domain(dot)tld
Tightly secured email address, by encrypting every characters. TPL:
Code: | {$email|HTMLSpamFilter} |
It produces: ema<!--62-->il@<!--19-->dom<!--23-->ain<!--44-->.tl<!--18-->d
Only a human can read this as a valid email address. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|