1 #Bloxsom Plugin:AntiSpam
2 #Author: Fletcher T. Penney
7 # --- Configurable variables ----
11 # -------------------------------
14 $email = '[\w\.]+@\w+(\.\w+)+';
21 my ($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_;
23 if ($$story_ref =~ m/<!-- noantispam -->/gi || $$body_ref =~ m/<!--
29 while ($$body_ref =~ /($email)/ig) {
32 @decimal = unpack('C*', $original);
33 foreach $i (@decimal) {
36 $$body_ref =~ s/$original/$masked/ig;
49 Blosxom Plug-in: antispam
53 This plugin converts any email addresses in your stories into ascii code. It
54 has no visible or functional effect, other than to change the html source code.
55 So something like this:
56 fletcher@hidden.domain
59 fletcher@alumni.duke.edu
61 But when viewed with a web browser, it is translated back into the expected
62 human readable string. The idea is that some of the spambots can't read this.
63 Though as this technique becomes more popular, I am sure that the spambots will
64 catch on. But it can't hurt, right?
68 Figure out how to get this work with writebacks as well to hide email addresses
73 None known; please send bug reports and feedback to the Blosxom
74 development mailing list <blosxom-devel@lists.sourceforge.net>.
78 Fletcher T. Penney http://fletcher.freeshell.org
80 This plugin is now maintained by the Blosxom Sourceforge Team,
81 <blosxom-devel@lists.sourceforge.net>.
85 This source is submitted to the public domain. Feel free to use and modify it.
86 If you like, a comment in your modified source attributing credit to myself for
87 my work would be appreciated.
89 THIS SOFTWARE IS PROVIDED AS IS AND WITHOUT ANY WARRANTY OF ANY KIND. USE AT