• Resolved imtino

    (@imtino)


    I recently started using Cloudflare. I’ve whitelisted my local IP. Inside “Maintenance Mode > Your Current IP Address” it does pick up my local IP. But when visit the website it still show the maintenance page because it pick up Cloudflare IP. The reason I know because I have it display IP.

    Is there a workaround or fixed?

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

    (@aitpro)

    You probably need to add all of the Cloudflare IP addresses. I believe this is all of them, but this code was created in January 2018 so Cloudflare may have added some new IP address.
    108.213.94.121, 172.69.[0-9]{1,3}.[0-9]{1,3}, 103.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 104.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 108.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 131.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 141.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 162.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 172.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 173.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 188.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 190.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 197.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 198.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}, 2400:cb00[:\\d\\w]+, 2405:8100[:\\d\\w]+, 2405:b500[:\\d\\w]+, 2606:4700[:\\d\\w]+, 2803:f800[:\\d\\w]+, 2c0f:f248[:\\d\\w]+, 2a06:98c0[:\\d\\w]+

    Thread Starter imtino

    (@imtino)

    If I add these IP addresses then does that mean everyone can visit the website?

    Plugin Author AITpro

    (@aitpro)

    Interesting. I believe Cloudflare dynamically assigns an IP address to your site/server, which you can see on the BPS System Info page. Normally you would just need to whitelist your IP address that is assigned to you by your ISP. I think Cloudflare messes with your IP address, but I could be wrong. Cloudflare definitely messes with DNS and changes your site/server IP address using > HTTP_X_FORWARDED_FOR.

    Maybe the problem is that Cloudflare is caching the Maintenance Mode page. If that is happening then whitelisting your IP address would not work because your Maintenance Mode page is cached on a Cloudflare Proxy server and not your website. You might want to try messing with Cloudflare settings or maybe check Cloudflare help pages. We know the basics about Cloudflare, but do not use it and really do not know much more than just the basics about Cloudflare.

    Thread Starter imtino

    (@imtino)

    I’ve tried and out of idea that’s why I’m hoping you got an answer. You’re always so helpful. Thank you.

    I guess for now I will have to pause when I’m working on the site. When done resume. There’s no fixed or work-around it.

    Thanks again.

    Plugin Author AITpro

    (@aitpro)

    Hmm yeah you would not need or want to have Cloudflare active/turned on if your site is in Maintenance Mode. So it sounds like the optimum working method is to pause/turn off Cloudflare temporarily if your site is in Maintenance Mode. If Cloudflare were easier to test then I would do some testing. Unfortunately, Cloudflare does not work on a Local Development server.

    Plugin Author AITpro

    (@aitpro)

    Assuming all questions have been answered – the thread has been resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloudflare and Maintenance Mode’ is closed to new replies.