Skip to content

Commit

Permalink
HotFix: Fix Siteimprove crawler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdforst committed Nov 15, 2024
1 parent b493487 commit ccf0456
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/Consent/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class Frontend
{
public static function loaded()
{
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
if (strpos($userAgent, 'by Siteimprove.com') !== false) {
return;
}

add_action('init', [__CLASS__, 'init']);

// Register handler for AJAX requests
Expand Down

0 comments on commit ccf0456

Please sign in to comment.