Apache::AntiSpam::HTMLEncode - Encodes E-mail addresses with HTML
# in httpd.conf <Location /antispam> SetHandler perl-script PerlHandler Apache::AntiSpam::HTMLEncode </Location> # filter aware PerlModule Apache::Filter SetHandler perl-script PerlSetVar Filter On PerlHandler Apache::RegistryFilter Apache::AntiSpam::HTMLEncode Apache::Compress
Apache::AntiSpam::HTMLEncode is a subclass of Apache::AntiSpam, filter module to prevent e-mail addresses exposed as is on web pages. This module encodes e-mail addresses with HTML.
For example, miyagawa@cpan.org will be filtered to miyagawa@cpan.org.
miyagawa@cpan.org
miyagawa@cpan.org
This won't affect anything on your favourite browsers, but spammers with crawling-robot plus pattern matching technique won't be able to extract addresses from this kind of format.
This module is Filter aware, meaning that it can work within Apache::Filter framework without modification.
The idea to encode E-mail address with HTML is stolen from http://perlmonks.org/?node_id=89810
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AntiSpam
CPAN shell
perl -MCPAN -e shell install Apache::AntiSpam
For more information on module installation, please visit the detailed CPAN module installation guide.