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?
67 I would like to figure out how to get this work with Writebacks as well to hide
68 email address that are submitted, but haven't gotten around to it. If someone
69 wants to modify the code and let me know, I can distribute the modified version
72 Let me know of any bugs!!
76 Fletcher T. Penney http://fletcher.freeshell.org
81 This source is submitted to the public domain. Feel free to use and modify it.
82 If you like, a comment in your modified source attributing credit to myself for
83 my work would be appreciated.
85 THIS SOFTWARE IS PROVIDED AS IS AND WITHOUT ANY WARRANTY OF ANY KIND. USE AT