WordPress.org

Ready to get started?Download WordPress

Forums

Absolute Privacy
White List IP (1 post)

  1. Gabriel
    Member
    Posted 1 year ago #

    My suggestion, a small change on the function abpr_lockDown, line 624:

    The var $options['whitelist_ip'] can comming from text area in the backend, IP coma split.

    if ( isset($options['whitelist_ip']) ) {
                    $whitelist_ip = preg_replace('/\s+/','',$options['whitelist_ip']);
    
                    foreach( preg_split('/\,+/',$whitelist_ip) as $ip ) {
                            if ( (string) $_SERVER['REMOTE_ADDR'] == (string) $ip )
                                    return;
                    }
            }

    http://wordpress.org/extend/plugins/absolute-privacy/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Gabriel
  • This topic is not a support question
  • WordPress version: 3.4.2

Tags