plese help to block this ip

markusgreco

Newbie
Joined
Oct 13, 2025
Messages
9
Reaction score
6
how can i block this ? tried cloudflare country block and wordfence but don't work.
what can i do? please help
1768828019764.png
 
Seems you're using php as the backend, you can block the ip request with starts with 43.
Below is a simple code for that.
<?php
function ip_in_range($ip, $cidr) {
list($subnet, $mask) = explode('/', $cidr);
return (ip2long($ip) & ~((1 << (32 - $mask)) - 1)) == ip2long($subnet);
}

if (ip_in_range($_SERVER['REMOTE_ADDR'], '43.0.0.0/8')) {
http_response_code(403);
exit('Access denied.');
}
 
Use Cloudflare then Bock each IP, you can also activate page captcha on cloudflare so you can auto block Bots IP
 
Back
Top