After being at GNU/Linux Day and listening at Fullo's antispam scripting advices, I've just upgraded my WP-contact-form plugin with Akismet antispam control, and DNS domain check.
My version is 1.4.3a and it's based on Ryanduff's code, while I'm writing it's released at version 1.4.3.
To get the contact form with DNS check of the sender email address, and then the Akismet support you must follow this steps:
- Download 1.4.3 original version from Ryanduff website
- Overwrite original wp-contactform.php with my antispam version
- Download the Akismet.class.php, choose between PHP4 or PHP5 version
- Copy the PHP class into your wp-content/plugins/akismet directory (make sure the filename is Akismet.class.php)
- Obtain a key from WordPress.com website (you must be subscribed)
- Activate both plugins (Akismet and WP Contact Form) into your WordPress plugins page, then configure Akismet plugin with the key obtained, and the other plugin as you want
- Try if it's checking DNS by inserting random email address in the form, if it's working try if it's catching spam using "viagra-test-123" as Name
This software is released under the General Public License (GPL).
Note: DNS check doesn't works on Win32 servers, by operating system limitations.

commenti
ma farne un pacchetto scaricabile? Anzi.. metti tutto su svn di google che ci pastrocchio anche io
Volentieri. Anche perché il codice scritto da RyanDuff è un po orrendo, sarebbe il caso di aggiustarlo in molti punti, magari aggiungendo il supporto gettext per le traduzioni.
Ficherrimo! Stavo proprio cercando un anti-spam per la contact-form. Ci tenete aggiornati sullo sviluppo del plugin? Grassie.
Sembra che il link alla classe php4 di akismet sia down perchè hanno eliminato tutto il sito.
Per caso ne hai una copia?
trovata
Invia nuovo commento