Block Searches From Certain IP From Reports
-
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,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Block Searches From Certain IP From Reports’ is closed to new replies.