-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
52 lines (38 loc) · 1.57 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=== Concise Antispam ===
Contributors: concisestudio
Tags: spam, antispam, anti-spam, anti spam
License: GPLv3
Requires PHP: 5.6
Requires at least: 4.1
Tested up to: 6.0
Stable tag: 1.0.13
Very simple antispam plugin.
Users do not need to enter any captcha, working completely on background.
No need to administer: just install the plugin and site will be protected.
Fully compatible with Contact Form 7 and Formidable Forms*.
== Description ==
= Algorithm =
1. Plugin generates token on the backend side.
2. Plugin adds hidden field for token in each form which will use method "POST" after rendering of the page.
3. Plugin inserts token in the field after user's interaction with site.
= For developers =
Antispam will automatically check submissions of the regular forms but ignores all AJAX requests.
If you want to change this behaviour, you can use filter `concise_antispam_need_to_validate_token`.
See example:
*Disable Antispam for some forms:*
`
add_filter("concise_antispam_need_to_validate_token", function($needToValidateToken) {
if (!empty($_POST['do-not-check-antispam-token'])) {
$needToValidateToken = false;
}
return $needToValidateToken;
});
`
You can also always manually call `\Concise\Antispam::validateTokenOrDie()` in your custom handler.
== Installation ==
1. Upload plugin to plugins directory
2. Active plugin through the "Plugins" menu in WordPress
== Formidable Forms integration ==
For proper work disable the honeypot checking in the forms
== Frequently Asked Questions ==
Please, report about any bug to developer@concise-studio.com