From 7b21035c2b2e1b2c73685c198ae2d008326293d4 Mon Sep 17 00:00:00 2001 From: AntonV1211 Date: Wed, 12 Nov 2025 15:56:37 +0700 Subject: [PATCH] Upd. BotDetecor. Changing the link to get ct-bot-detector-wrapper.js --- README.md | 2 +- examples/form_with_handler/form_with_handler.php | 2 +- lib/CleantalkAntispam.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af1d123..1eb8c97 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ $api_result = $cleantalk_antispam->handle(); ### Step 2.1 - add js lib to your html template _Need for gathering frontend data._ ```html - + ``` and do not forget to add additional parameter to the request ```php linenums="3" diff --git a/examples/form_with_handler/form_with_handler.php b/examples/form_with_handler/form_with_handler.php index 929b1ab..8105878 100644 --- a/examples/form_with_handler/form_with_handler.php +++ b/examples/form_with_handler/form_with_handler.php @@ -62,7 +62,7 @@ - + diff --git a/lib/CleantalkAntispam.php b/lib/CleantalkAntispam.php index c53bb74..b367e81 100644 --- a/lib/CleantalkAntispam.php +++ b/lib/CleantalkAntispam.php @@ -10,7 +10,7 @@ class CleantalkAntispam { const MODERATE_URL = 'https://moderate.cleantalk.org/api2.0'; - const BOT_DETECTOR_LIBRARY_URL = 'https://moderate.cleantalk.org/ct-bot-detector-wrapper.js'; + const BOT_DETECTOR_LIBRARY_URL = 'https://fd.cleantalk.org/ct-bot-detector-wrapper.js'; const EVENT_TOKEN_FIELD_NAME = 'ct_bot_detector_event_token'; const EMAIL_ADDRESS_REGEXP = '/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/';