Skip to content

Commit ccf0456

Browse files
committed
HotFix: Fix Siteimprove crawler issue
1 parent b493487 commit ccf0456

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

includes/Consent/Frontend.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ class Frontend
1212
{
1313
public static function loaded()
1414
{
15+
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
16+
if (strpos($userAgent, 'by Siteimprove.com') !== false) {
17+
return;
18+
}
19+
1520
add_action('init', [__CLASS__, 'init']);
1621

1722
// Register handler for AJAX requests

0 commit comments

Comments
 (0)