NP_AntiSpamMail

We all hate spam and we all love comments. So we wouldn't want to get the visitors that post their email-address to get spam? right now, they might. if a spambot passes your site, it'll easily find all the email-addresses and add them to his mailinglist. With this plugin that's history!

General Plugin info
Author: marijnnn
Current Version: v0.21
Download: http://cellardoor.be/opendir/antispam/
Code: n/a
Demo: http://blog.cellardoor.be (but the coolest thing is: you won't notice a thing :D
Forum Thread: here

Installing

Steps to get this plugin working on your site:

  1. Download the plugin
  2. Unpack the files. put Antispam.js in the /nucleus/javascript directory and put NP_AntiSpamMail.php in the /nucleus/plugins directory
  3. Within Nucleus, install the plugin
  4. Return to the plugin list and edit the options if you like. make sure the separator is NOT empty. by default, it's a whitespace. Also, don't put whitespaces in the replacemtstrings for the . and the @.
  5. change the file head.inc of the skin you are using. in the section between

<%if(skintype,item)%> and the first <%endif%> after that, paste this line:

<script type=“text/javascript” src=”/nucleus/javascript/AntiSpam.js”></script>

if you're not sure about this, just place it just after the first time <head> appears in this file. the file will be loaded every time then. it's a bit overload, but it won't hurt too much, it's a small file

What the Plugin Does

nucleus without the plugin: a visitor posts a comment and leaves his emailadres. when viewing the comments, you can click on the user's name to send an email. the link is something like mailto:john.doe@gmail.com. spambots scanning your website will add all these addresses to their mailinglist which is something you don't want for your visitors i guess…

nucleus with the plugin: before displaying the comments, the addresses are converted. instead of mailto:john.doe@gmail.com it now shows john dot doe at gmail dot com (by changing the separator and the . & @ replacementstrings, this can easily be changed to john|point|doe|apetail|gmail|point|com if you like) spambots will find nothing at all: no mailto:-links! BUT: when you or another visitor wants to send a mail to our dear john doe, he can still click the link. because right before he clicks it, a tiny javascript converts the link again!

as a little extra, from v0.21 on, the plugin also converts invalid hyperlinks (mysite.com) from users to valid ones (**http://**mysite.com)

Options

There are a few plugin options:

  1. the separator (default whitespace. it has to be something that doesn't appear in emailaddresses. like '|' or '#')
  2. @-replacement. default at. can't contain the separator :-)
  3. .-replacement. default dot. can't contain the separator either
  4. emailaddress to show to spammers. if you want to play it dirty, you can enter the emailaddress of another spam-company here. all spambots will be show this emailaddress. if you leave this blank, it will show the john dot doe at gmail dot com-type of links (which is the default).

History

  1. v0.1 - initial version
  2. v0.2 - no longer need to change the javascript file when changing options.
antispammail.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki