Hi,
Does anyone have any experience in blocking searches from certain IPs from appearing in reports?
I currently, have the below but searches are still coming through?
add_filter(‘relevanssi_ok_to_log’, ‘rlv_block_vuln’, 10, 5);
function rlv_block_vuln($ok, $query, $hits, $user_agent, $ip)
{
if (‘ip.address.here’ === substr($ip, 0, 6)) {
$ok = false;
}
return $ok;
}
Thanks,