You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.
7
+
## The Invisible protection from spam, no captcha, no recaptcha, no puzzles, no math captcha.
8
+
_API for antispam service cleantalk.org_
8
9
9
-
## How API stops spam?
10
-
API uses several simple tests to stop spammers.
11
-
* Spam bots signatures.
12
-
* Blacklists checks by Email, IP, web-sites domain names.
13
-
* JavaScript availability.
14
-
* Relevance test for the comment.
10
+
#### Requirements
11
+
* PHP 5.6 and above
12
+
* CURL support
15
13
16
-
## How API works?
17
-
API sends a comment's text and several previous approved comments to the servers. Servers evaluates the relevance of the comment's text on the topic, tests on spam and finaly provides a solution - to publish or put on manual moderation of comments. If a comment is placed on manual moderation, the plugin adds to the text of a comment explaining the reason for the ban server publishing.
14
+
###How we stop spam?
15
+
PHP Anti-Spam library providing invisible spam protection for your websites, registration forms, and comment sections. CleanTalk API offers an effective CAPTCHA alternative that silently blocks spam without interrupting your users' experience.
18
16
19
-
## Requirements
17
+
When users submit forms on your website form, the form data is securely sent to CleanTalk’s cloud servers. CleanTalk analyzes submissions using advanced heuristics. CleanTalk then returns a real-time verdict— legitimate requests or spam.
20
18
21
-
* PHP 5.6 and above
22
-
* CURL support
19
+
You are free to do anything with spam, or just allow as to block spam (we will interrupt desirable request).
23
20
24
-
You can unpack the archive with the plugin to the root of the site or install it using the composer
25
21
22
+
## Interesting? Let's make some settings (it will take few minutes)
23
+
24
+
25
+
### Step 1 - install our SDK (2 variants ability)
26
+
27
+
Through composer install **OR** through download zip arhive and unzip it to root directory (with your index.php)
26
28
```php
27
29
composer require cleantalk/php-antispam
28
30
```
29
-
30
-
### Sample SPAM test for text comment
31
-
32
-
Notice: You can use the example PHP file from <code>./examples/form_with_handler</code>
33
31
34
-
```php
35
-
<?php
36
-
session_start();
37
32
38
-
$apikey = '';
39
-
$email_field = 'name_email_form_field';
40
-
$user_name_field = 'name_user_name_form_field';
41
-
$message_field = 'name_message_form_field';
42
-
$type_form = 'contact'; // use 'signup' for user signup form
33
+
### Step 2 - add CleantalkAntispam handler (middleware/interception) to your form handler (action)
43
34
44
-
// if downloaded, unzip and include the app, take your own relative path:
0 commit comments