altcha 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -2
- package/dist/altcha.js +705 -606
- package/dist/altcha.umd.cjs +1 -1
- package/dist_external/altcha.css +41 -1
- package/dist_external/altcha.js +739 -640
- package/dist_external/altcha.umd.cjs +1 -1
- package/package.json +4 -3
- package/dist/altcha.iife.js +0 -1
- package/dist_external/altcha.iife.js +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,18 @@ https://altcha.org
|
|
|
8
8
|
|
|
9
9
|
- __Friction-less__ - Using PoW instead of visual puzzles.
|
|
10
10
|
- __Cookie-less__ - GDPR compliant by design.
|
|
11
|
-
- __Self-hosted__ - Without reliance on external providers.
|
|
11
|
+
- __Self-hosted__ - Without reliance on external providers in self-hosted mode.
|
|
12
|
+
- __SaaS available__ - Visit [altcha.org](https://altcha.org/docs/api) to get started with the SaaS API.
|
|
13
|
+
|
|
14
|
+
## Integrations
|
|
15
|
+
|
|
16
|
+
- [WordPress plugin](https://github.com/altcha-org/wordpress-plugin)
|
|
17
|
+
- [Other libraries and plugins](https://altcha.org/docs/integrations/)
|
|
18
|
+
|
|
19
|
+
## More anti-spam solutions
|
|
20
|
+
|
|
21
|
+
- [Spam Filter](https://altcha.org/anti-spam) - stop sophisticated attacks and human-generated spam by classifying data.
|
|
22
|
+
- [ALTCHA lib](https://github.com/altcha-org/altcha-lib) - invisible Captcha, custom components and server-side M2M ALTCHA.
|
|
12
23
|
|
|
13
24
|
## Usage
|
|
14
25
|
|
|
@@ -65,7 +76,11 @@ Additional options:
|
|
|
65
76
|
|
|
66
77
|
- __auto__ - Automatically verify without user interaction (possible values: `onfocus`, `onload`, `onsubmit`).
|
|
67
78
|
- __blockspam__ - Only used in conjunction with the `spamfilter` option. If enabled, it will block form submission and fail verification if the Spam Filter returns a negative classification. This effectively prevents submission of the form.
|
|
79
|
+
- __delay__ - The artificial delay in milliseconds to apply before the verification (defaults to 0).
|
|
68
80
|
- __expire__ - The challenge expiration (duration in milliseconds).
|
|
81
|
+
- __floating__ - Enable floating UI (possible values: `auto`, `top`, `bottom`).
|
|
82
|
+
- __floatinganchor__ - The CSS selector of the "anchor" to which the floating UI will be attached to (defaults to the `button[type="submit"]` in the related form).
|
|
83
|
+
- __floatingoffset__ - The Y offset from the anchor element for the floating UI expressed in pixels (defaults to `12`).
|
|
69
84
|
- __hidefooter__ - Hide the footer (ALTCHA link).
|
|
70
85
|
- __hidelogo__ - Hide the ALTCHA logo.
|
|
71
86
|
- __maxnumber__ - The max. number to iterate to (defaults to 1,000,000).
|
|
@@ -113,7 +128,11 @@ export interface Configure {
|
|
|
113
128
|
signature: string;
|
|
114
129
|
};
|
|
115
130
|
debug?: boolean;
|
|
131
|
+
delay?: number;
|
|
116
132
|
expire?: number;
|
|
133
|
+
floating?: 'auto' | 'top' | 'bottom';
|
|
134
|
+
floatinganchor?: string;
|
|
135
|
+
floatingoffset?: number;
|
|
117
136
|
hidefooter?: boolean;
|
|
118
137
|
hidelogo?: boolean;
|
|
119
138
|
maxnumber?: number;
|
|
@@ -165,7 +184,7 @@ document.querySelector('#altcha').addEventListener('statechange', (ev) => {
|
|
|
165
184
|
|
|
166
185
|
## Spam Filter
|
|
167
186
|
|
|
168
|
-
The widget integrates with ALTCHA's [Spam
|
|
187
|
+
The widget integrates with ALTCHA's [Anti-Spam solution](https://altcha.org/anti-spam) to allow checking submitted form data for potential spam.
|
|
169
188
|
|
|
170
189
|
The Spam Filter API analyzes various signals in the submitted data to determine if it exhibits characteristics of spam. This non-invasive filtering helps reduce spam submissions without frustrating legitimate users.
|
|
171
190
|
|
|
@@ -193,6 +212,8 @@ SpamFilter configuration options:
|
|
|
193
212
|
- __ipAddress__ - The user's IP is detected automatically but can be overridden or disabled with `false`.
|
|
194
213
|
- __timeZone__ - The user's timezone is detected automatically but can be overridden or disabled with `false`.
|
|
195
214
|
|
|
215
|
+
To include the email field into `fields` (for easier server-side verification), configure the list of input names using the `spamfilter.fields: string[]` option.
|
|
216
|
+
|
|
196
217
|
### Exclude Inputs from Spam Checking
|
|
197
218
|
|
|
198
219
|
By default, all text inputs and textareas within the parent form are spam-checked. To exclude a specific input, add the `data-no-spamfilter` attribute. Alternatively, explicitly list the checked fields using the `fields` config option.
|