XF 1.5 Banned IP and emails did not import

wardsweb

Member
Is there a way to retrieve banned IP's and banned email addresses from the database? These did not show up in the admin console after the change from vB3.8 to XenForo 1.5.
 
xf_ip_match. I generally wouldn't recommend trying to change the database directly though. IPs likely aren't stored in the format you expect (plus caches, etc).
 
OK, I'm trying to avoid manually entering IP's one at a time that have been accumulated over the last 13 years. The same will be true of banned email addresses. With a forum as large as Audiokarma.org, we get hammered on a daily basis.
 
i just did this:

PHP:
$model = XenForo_Model::create('XenForo_Model_Banning');
$ips = explode("\n", $ips);

foreach($ips as $ip) {
    try {
        $model->banIp($ip);
    } catch(Exception $e) {
        echo $ip . ':' . $e->getMessage() . "\n";
    }
}

is there a reason why IPs/emails are not imported? seems pretty easy to add.
 
Back
Top Bottom