Skip to content

Commit 9f4700b

Browse files
committed
Remove unecessary check
1 parent 76e63fa commit 9f4700b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

library/vulnerabilities/bot-spoofing/checkContextForBotSpoofing.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ export async function checkContextForBotSpoofing(
3838
return false;
3939
}
4040

41-
// If the bot does not have any IPs or hostnames to verify, we can't determine if it's spoofing
42-
if (!matchingBot.ips && matchingBot.hostnames.length === 0) {
43-
return false;
44-
}
45-
4641
const isAuthentic = await verifyBotAuthenticity(ip, matchingBot);
4742

4843
return !isAuthentic; // If the bot is not authentic, it is considered as bot spoofing

0 commit comments

Comments
 (0)