@anonympins/fingerprint 0.8.0 → 0.8.2

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.
@@ -1,6 +1,6 @@
1
1
  msgid ""
2
2
  msgstr ""
3
- "Project-Id-Version: Anonympins Bot Mitigation with Proof-of-Work 0.8.0\n"
3
+ "Project-Id-Version: Anonympins Bot Mitigation with Proof-of-Work 0.8.2\n"
4
4
  "Report-Msgid-Bugs-To: https://github.com/anonympins/fingerprint/issues\n"
5
5
  "POT-Creation-Date: 2026-09-24 12:00+0000\n"
6
6
  "PO-Revision-Date: 2026-09-24 12:00+0000\n"
@@ -1,6 +1,6 @@
1
1
  msgid ""
2
2
  msgstr ""
3
- "Project-Id-Version: Fingerprint Anti-Bot 0.8.0\n"
3
+ "Project-Id-Version: Fingerprint Anti-Bot 0.8.2\n"
4
4
  "Report-Msgid-Bugs-To: https://github.com/anonympins/fingerprint/issues\n"
5
5
  "POT-Creation-Date: 2026-09-24 12:00+0000\n"
6
6
  "PO-Revision-Date: 2026-09-24 12:00+0000\n"
@@ -1,6 +1,6 @@
1
1
  msgid ""
2
2
  msgstr ""
3
- "Project-Id-Version: Fingerprint Anti-Bot 0.8.0\n"
3
+ "Project-Id-Version: Fingerprint Anti-Bot 0.8.2\n"
4
4
  "Report-Msgid-Bugs-To: https://github.com/anonympins/fingerprint/issues\n"
5
5
  "POT-Creation-Date: 2026-09-24 12:00+0000\n"
6
6
  "PO-Revision-Date: 2026-09-24 12:00+0000\n"
@@ -44,6 +44,7 @@ if (file_exists($zipFile)) {
44
44
  @mkdir($buildDir . '/src', 0777, true);
45
45
  @mkdir($buildDir . '/assets', 0777, true);
46
46
  @mkdir($buildDir . '/languages', 0777, true);
47
+ @mkdir($buildDir . '/config', 0777, true);
47
48
 
48
49
  // 2. Copy main WordPress plugin files
49
50
  copy($wpDir . '/anonympins-bot-mitigation-pow.php', $buildDir . '/anonympins-bot-mitigation-pow.php');
@@ -131,6 +132,15 @@ if (file_exists($clientSource)) {
131
132
  copy($clientSource, $buildDir . '/assets/fingerprint.client.js');
132
133
  }
133
134
 
135
+ // 3.b Copy problem/bot configuration assets
136
+ $configSourceDir = $rootDir . '/config';
137
+ if (is_dir($configSourceDir)) {
138
+ $configFiles = glob($configSourceDir . '/*.json') ?: [];
139
+ foreach ($configFiles as $cfgFile) {
140
+ copy($cfgFile, $buildDir . '/config/' . basename($cfgFile));
141
+ }
142
+ }
143
+
134
144
  // 4. Recursively copy PHP library (src/php -> build/src), excluding dev folders
135
145
  $excludeDirs = ['WordPress', 'Tests', 'bin'];
136
146
  $phpIterator = new RecursiveIteratorIterator(
@@ -4,7 +4,7 @@ Tags: bot protection, security, proof of work, firewall, anti scraping
4
4
  Requires at least: 5.9
5
5
  Tested up to: 7.1
6
6
  Requires PHP: 8.0
7
- Stable tag: 0.8.0
7
+ Stable tag: 0.8.2
8
8
  License: MIT
9
9
  License URI: https://opensource.org/licenses/MIT
10
10
 
@@ -37,6 +37,12 @@ No. All evaluations, challenges, and validations occur directly on your WordPres
37
37
  = Is HTTPS required? =
38
38
  HTTPS is strongly recommended. Under unencrypted HTTP, modern browsers disable the Web Cryptography API (`crypto.subtle`), which reduces challenge verification performance.
39
39
 
40
+ = How do I scrape the Prometheus metrics endpoint? =
41
+ Metrics can be accessed in standard Prometheus text exposition format via:
42
+ 1. The REST API endpoint: `GET /wp-json/fingerprint/v1/metrics` (Requires `manage_options` permission or a custom authorization callback hooked into the `fingerprint_metrics_access` filter).
43
+ 2. Direct path endpoint: `GET /metrics` (Evaluated in early execution lifecycle; filterable with `fingerprint_metrics_authorization`).
44
+ 3. The admin dashboard: **Settings -> Anonympins Bot Mitigation -> Prometheus Stream**.
45
+
40
46
  = How can I monitor incoming request suspicion scores in real time? =
41
47
  Under **Settings -> Anonympins Bot Mitigation -> Sandbox / Test Mode**, the plugin provides real-time observability interfaces for all challenged visitors across the website:
42
48