Make WordPress Core


Ignore:
Timestamp:
02/02/2005 08:40:44 AM (21 years ago)
Author:
saxmatt
Message:

Adding support for a proxy-specific RBL that has shown to be extremely effective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r2184 r2199  
    418418        if ( preg_match($pattern, $user_agent) ) return true;
    419419    }
     420   
     421    if ( get_option('open_proxy_check') && isset($_SERVER['REMOTE_ADDR']) ) {
     422        $rev_ip = implode( '.', array_reverse( explode( '.', $_SERVER['REMOTE_ADDR'] ) ) );
     423        $lookup = $rev_ip . '.opm.blitzed.org';
     424        if ( $lookup != gethostbyname( $lookup ) )
     425            return true;
     426    }
    420427
    421428    return false;
Note: See TracChangeset for help on using the changeset viewer.