NAME
Apache::AntiSpam::JavaScript - Encodes mailto: E-mail addresses with JavaScript
SYNOPSIS
# 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
DESCRIPTION
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>.
AUTHOR
Alex Pleiner, <alex@zeitform.de>
COPYRIGHT AND LICENSE
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.