We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2138ad commit 87918a3Copy full SHA for 87918a3
src/TrackingRules.php
@@ -14,6 +14,9 @@ public function __construct(WordPressSettings $settings)
14
public function hasExcludedIp(): bool
15
{
16
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'];
17
+
18
+ if (empty($ip)) return false;
19
20
$list = $this->settings->array(SettingName::EXCLUDED_IP_ADDRESSES);
21
22
return in_array($ip, $list);
0 commit comments