Skip to content

Commit fa5f276

Browse files
Update BlockBots.php
1 parent eedfbce commit fa5f276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/BlockBots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public function passesBotRules()
199199
// While the bot is on pending_list, it's unchecked, so we allow this bot to pass-thru
200200
if (!Redis::sismember($this->options->pending_bot_list_key, $this->client->ip)) {
201201
// If we got here, it is an unknown bot. Let's create a job to test it
202-
CheckIfBotIsReal::dispatch($this->client, $this->getAllowedBots(), $this->options);
203202
Redis::sadd($this->options->pending_bot_list_key, $this->client->ip);
203+
CheckIfBotIsReal::dispatch($this->client, $this->getAllowedBots(), $this->options);
204204
}
205205

206206
return true;

0 commit comments

Comments
 (0)