Apache::AntiSpam::JavaScript - Encodes mailto: E-mail addresses with JavaScript
# in httpd.conf <Location /antispam> SetHandler perl-script PerlHandler Apache::AntiSpam::JavaScript </Location> # filter aware PerlModule Apache::Filter SetHandler perl-script PerlSetVar Filter On PerlHandler Apache::RegistryFilter Apache::AntiSpam::JavaScript Apache::Compress
Apache::AntiSpam::JavaScript is based on Apache::AntiSpam and implements a filter module to prevent e-mail addresses exposed as is on web pages. This module converts the anchors containing e-mail addresses (mailto:) to JavaScript code.
# in html-file <a href="mailto:alex@zeitform.de">alex@zeitform.de</a> # in browser <script type="text/javascript"> JSlt=unescape('%3C'); // "<" JSgt=unescape('%3E'); // ">" document.write(''+JSlt+'a h'+'ref='+'"mai'+'lto:'+'alex'+'@zei'+'tfor'+ 'm.de'+'"'+JSgt+'al'+'ex@z'+'eitf'+'orm.'+'de'+JSlt+'/'+ 'a'+JSgt+''); </script>
This module is Filter aware, meaning that it can work within Apache::Filter framework without modification.
You may want to use other Apache::AntiSpam::* modules after this one.
This work is based on the Apache::AntiSpam::* modules provided by Tatsuhiko Miyagawa <miyagawa@bulknews.net>.
Alex Pleiner, <alex@zeitform.de>
Copyright 2003, 2004 by Alex Pleiner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Apache::AntiSpam
To install Apache::AntiSpam::JavaScript, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AntiSpam::JavaScript
CPAN shell
perl -MCPAN -e shell install Apache::AntiSpam::JavaScript
For more information on module installation, please visit the detailed CPAN module installation guide.