Skip to content

Commit

Permalink
adding status cake to bot filter
Browse files Browse the repository at this point in the history
  • Loading branch information
idugan100 committed Aug 27, 2024
1 parent 288ad26 commit 32b252c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/IsBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class IsBot
{
public static function check(string $ip, string $user_agent): bool
{
$user_agent_result = preg_match('/.*bot.*|Mediapartners-Google|.*Crawler.*|.*python-requests.*|.*http.*|.*node-fetch.*|.*postman.*|.*curl.*|.*Bytespider.*|.*Status Cake Uptime Monitoring.*/', $user_agent);
$user_agent_result = preg_match('/.*bot.*|Mediapartners-Google|.*Crawler.*|.*python-requests.*|.*http.*|.*node-fetch.*|.*postman.*|.*curl.*|.*Bytespider.*|.*StatusCake.*/', $user_agent);
$ip_result = preg_match(
'/54.198.193.239|18.203.99.29|23.20.205.139|54.198.181.10|54.237.245.103|52.90.196.158|3.84.129.243|52.90.196.158|54.173.157.97|44.203.91.18|3.81.172.31|54.183.164.142|44.200.174.154|54.243.7.211|34.204.78.11|54.159.21.79/', $ip
);
Expand Down

0 comments on commit 32b252c

Please sign in to comment.