Zwróć 404 i tekst jako text/plain:

// tylko 127.0.0.0/8
if (filter_var($_SERVER['REMOTE_ADDR'],
        FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE))
{
    header("HTTP/1.1 404 Not Found");
    header("Content-Type: text/plain");
    echo 'Not Found';
    exit;
} else {
    echo 'OK';
}

Refs