Lower interaction score threshold to stop blocking real users
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -289,7 +289,7 @@ if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH
|
|||||||
if (isset($_POST['interaction_token']) && !empty($_POST['interaction_token'])) {
|
if (isset($_POST['interaction_token']) && !empty($_POST['interaction_token'])) {
|
||||||
$tokenData = @json_decode(base64_decode($_POST['interaction_token']), true);
|
$tokenData = @json_decode(base64_decode($_POST['interaction_token']), true);
|
||||||
if ($tokenData && isset($tokenData['score'])) {
|
if ($tokenData && isset($tokenData['score'])) {
|
||||||
if ($tokenData['score'] < 30) {
|
if ($tokenData["score"] < 3) {
|
||||||
// Log low interaction score
|
// Log low interaction score
|
||||||
$logEntry = date('Y-m-d H:i:s') . " - LOW INTERACTION SCORE: " . $tokenData['score'] . " from " . $_SERVER['REMOTE_ADDR'] . "\n";
|
$logEntry = date('Y-m-d H:i:s') . " - LOW INTERACTION SCORE: " . $tokenData['score'] . " from " . $_SERVER['REMOTE_ADDR'] . "\n";
|
||||||
file_put_contents('logs/contact-errors.log', $logEntry, FILE_APPEND | LOCK_EX);
|
file_put_contents('logs/contact-errors.log', $logEntry, FILE_APPEND | LOCK_EX);
|
||||||
|
|||||||
Reference in New Issue
Block a user