1 |
11987c58
|
Florent Torregrosa
|
|
2 |
|
|
Honeypot Module Readme
|
3 |
|
|
----------------------
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
Installation
|
7 |
|
|
------------
|
8 |
|
|
|
9 |
|
|
To install this module, place it in your sites/all/modules folder and enable it
|
10 |
|
|
on the modules page.
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
Configuration
|
14 |
|
|
-------------
|
15 |
|
|
|
16 |
|
|
All settings for this module are on the Honeypot configuration page, under the
|
17 |
|
|
Configuration section, in the Content authoring settings. You can visit the
|
18 |
|
|
configuration page directly at admin/config/content/honeypot.
|
19 |
|
|
|
20 |
|
|
Note that, when testing Honeypot on your website, make sure you're not logged in
|
21 |
|
|
as an administrative user or user 1; Honeypot allows administrative users to
|
22 |
|
|
bypass Honeypot protection, so by default, Honeypot will not be added to forms
|
23 |
|
|
accessed by site administrators.
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
Use in Your Own Forms
|
27 |
|
|
---------------------
|
28 |
|
|
|
29 |
|
|
If you want to add honeypot to your own forms, or to any form through your own
|
30 |
|
|
module's hook_form_alter's, you can simply place the following function call
|
31 |
|
|
inside your form builder function (or inside a hook_form_alter):
|
32 |
|
|
|
33 |
|
|
honeypot_add_form_protection($form, $form_state, array('honeypot', 'time_restriction'));
|
34 |
|
|
|
35 |
|
|
Note that you can enable or disable either the honeypot field, or the time
|
36 |
|
|
restriction on the form by including or not including the option in the array.
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
Credit
|
40 |
|
|
------
|
41 |
|
|
|
42 |
|
|
The Honeypot module was originally developed by Jeff Geerling of Midwestern Mac,
|
43 |
|
|
LLC (midwesternmac.com), and sponsored by flockNote (flocknote.com). |