altcha 0.4.3 → 0.5.1

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 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
 
@@ -50,6 +61,10 @@ See the [configuration](#configuration) below or visit the [website integration
50
61
 
51
62
  See [server documentation](https://altcha.org/docs/server-integration) for more details.
52
63
 
64
+ ## Content Security Policy (CSP)
65
+
66
+ The default distribution bundle of the WebComponent includes styles and the worker in a single file. This might cause issues with strict CSP rules. If you require strict CSP compliance, consider using the scripts located in the `/dist_external` directory. For more details, please refer to the [documentation](https://altcha.org/docs/website-integration).
67
+
53
68
  ## Configuration
54
69
 
55
70
  Required options (at least one is required):
@@ -70,7 +85,8 @@ Additional options:
70
85
  - __strings__ - JSON-encoded translation strings. Refer to [customization](/docs/widget-customization).
71
86
  - __refetchonexpire__ - Automatically re-fetch and re-validate when the challenge expires (defaults to true).
72
87
  - __verifyurl__ - Enable server-side verification by configuring the URL to use for verification requests. This option can be used in conjunction with `spamfilter` to enable server-side verification.
73
- - __workers__ - The number of workers to utilize for PoW (defaults to `navigator.hardwareConcurrency || 8`).
88
+ - __workers__ - The number of workers to utilize for PoW (defaults to `navigator.hardwareConcurrency || 8`, max. value `16`).
89
+ - __workerurl__ - The URL of the Worker script (defaults to `./worker.js`, only works with `external` build).
74
90
 
75
91
  Development / testing options:
76
92
 
@@ -160,7 +176,7 @@ document.querySelector('#altcha').addEventListener('statechange', (ev) => {
160
176
 
161
177
  ## Spam Filter
162
178
 
163
- The widget integrates with ALTCHA's [Spam Filter API](https://altcha.org/docs/api/spam-filter-api) to allow checking submitted form data for potential spam.
179
+ The widget integrates with ALTCHA's [Anti-Spam solution](https://altcha.org/anti-spam) to allow checking submitted form data for potential spam.
164
180
 
165
181
  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.
166
182
 
@@ -188,6 +204,8 @@ SpamFilter configuration options:
188
204
  - __ipAddress__ - The user's IP is detected automatically but can be overridden or disabled with `false`.
189
205
  - __timeZone__ - The user's timezone is detected automatically but can be overridden or disabled with `false`.
190
206
 
207
+ To include the email field into `fields` (for easier server-side verification), configure the list of input names using the `spamfilter.fields: string[]` option.
208
+
191
209
  ### Exclude Inputs from Spam Checking
192
210
 
193
211
  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.