You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log::stack($this->config['channels_blocks'])->error("[Block-Bots] IP: {$ip} with User agent: {$user_agent} would be blocked after {$number_of_hits} hits while accessing URL {$full_url}");
106
+
}
101
107
}
102
108
109
+
if($fake_mode)
110
+
{
103
111
returnfalse;
104
112
}
105
113
else{
@@ -142,7 +150,7 @@ public function isWhitelisted($ip, $user_agent)
142
150
//Add this to the redis list as it is faster
143
151
Redis::sadd($key_whitelist, $ip);
144
152
if ($this->config['log_blocked_requests']){
145
-
Log::info("[Block-Bots] WHITELISTED IP: {$ip} with User agent: {$user_agent} because was on our config");
153
+
Log::stack($this->config['channels_info'])->info("[Block-Bots] WHITELISTED IP: {$ip} with User agent: {$user_agent} because was on our config");
0 commit comments