Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jnewland/php-akismet-contact

Automatically exported from code.google.com/p/php-akismet-contact
https://github.com/jnewland/php-akismet-contact

Last synced: about 1 month ago
JSON representation

Automatically exported from code.google.com/p/php-akismet-contact

Awesome Lists containing this project

README

        

phpAkismetContact
Jesse Newland
http://jnewland.com
[email protected]

SECURITY MEASURES

* All form fields are checked for newlines or null bytes followed by email commands.
* HTTP Referrer is required, and checked against an array of allowed referrers.
* To and From emails are validated
* Emails may only be sent to the recipient defined in the script
* If all of these checks pass, the contents of the email submitted to Akismet to verify it's not spam.

EXAMPLE FORM:


Name




Email

Message


REQUIRED PARAMETERS:

* email - valid email that will be the from address. the contents of this parameter will be sent to Akismet for spam checking

* bcc - THIS FIELD IS REQUIRED TO BE BLANK. This is designed to bait spammers. I've found that spammers generally submit all contact form fields, even if commented out. (http://isc.sans.org/diary.php?storyid=1836)

OPTIONAL PARAMETERS:

* redirect - full URL (with http://) that the script will redirect to on success.

* name - the contents of this parameter will be sent to Akismet for spam checking

* comments - the contents of this parameter will be sent to Akismet for spam checking

All other parameters will be included in the email, but will not be checked by Akismet.

Please note that in order to use this, you must have a vaild WordPress API key (http://wordpress.com/api-keys/). They are free for non/small-profit types and getting one will only take a couple of minutes.