Maintenance Mode Additional IPs

Home Forums BulletProof Security Free Maintenance Mode Additional IPs

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5145
    Kate Pollitt


    I’ve set my site up in maintenance mode and would like to add two additional IP addresses to the .htaccess file

    I have found the line in question, but do I duplicate the line for the additional IP addresses or put them in a string. If it’s the latter can you please let me know how to code it.

    Thanks Kate

    AITpro Admin

    You would add additional IP addresses by adding them as shown below and using the [OR] flag for each additional IP Address you add.

    RewriteCond %{REMOTE_ADDR} !^10\.100\.4\.1$ [OR]
    RewriteCond %{REMOTE_ADDR} !^192\.168\.100\.32$ [OR]
    RewriteCond %{REMOTE_ADDR} !^88\.55\.66\.200$
    RewriteCond %{REQUEST_URI} !^/bp-maintenance\.php$
    RewriteCond %{REQUEST_URI} !^/wp-content/plugins/bulletproof-security/abstract-blue-bg\.png$
    RewriteRule ^(.*)$ /bp-maintenance.php [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    Kate Pollitt

    That’s great thanks. Another rung up the coding ladder.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.