Support » Plugin: BulletProof Security » How to add another IP address to allow access to maintenance mode

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AITpro

    (@aitpro)

    You may or may not have to add the [OR] flag, but technically this code says – if the IP address IS NOT 88.55.66.200 or the IP address IS NOT 44.33.22.200 and the URI/file IS NOT bp-maintenance.php and the URI/file IS NOT abstract-blue-bg.png then rewrite the Request to the bp-maintenance.php file, which means if your IP address IS NOT whitelisted then you will see the Website Under Maintenance page. If your IP Address is one of the IP addresses whitelisted then the rewriterule will display your website to you normally.

    RewriteCond %{REMOTE_ADDR} !^88\.55\.66\.200$ [OR]
    RewriteCond %{REMOTE_ADDR} !^44\.33\.22\.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]

    Thanks for replying. I figured it out. I was editing the maintenance.htaccess from the plugin page on the Edit/Upload/Download tab, but it was not actually making the edits to the file. I downloaded the file, made the edits manually, re-uploaded, and was able to get it to work with multiple IPs. The [OR] flag is not needed, duplicating the line is fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add another IP address to allow access to maintenance mode’ is closed to new replies.