Zero Trust Setup for WP-Admin not rendering One Time PIN challenge

What is the name of the domain?

udpride.com

What is the issue you’re encountering

Not displaying when accessing Zero Trust URL

What steps have you taken to resolve the issue?

I currently have my WP-Admin and WP-Login WAF’d by a IP-only rule for my static home computer which is great b/c Im the only access point, however I have other employees from time that need access to the WP back end and are on static IPs/travel a lot. They need access. I tried to set up a Zero Trust application and group but in testing Im having trouble getting it to work. It’s not displaying the challenge poster for the one-time code. In other words its as if nothing is happening and I browse to the URLs with no trouble.

In testing I have turned off my WAF rule that blocks everyone except me so the world can access the WP-Admin and WP-Login.

In Zero Trust I:

  1. Created an Access Group named “WP-Admin” with email addresses to constitute the users I will grant one-time access to
  2. Created a Self-Hosted Application named “WordPress WP-Admin”, Allow, 1-Week Duration, domain: domain.com, path: /wp-admin
  3. Application Appearance Enabled App in App Launcher OFF, Use default domain, added custom logo URL
  4. Blocked Pages: Cloudflare default for identity and non-identity
  5. Identity Providers: One Time Pin, Ship Auth OFF
  6. WARP Auth Identity OFF
  7. Added policy “WP-Admin Access”, action ALLOW, duration 1 week
  8. Assigned Access Group from Step 1
  9. Skipped Create Add’l Rules
  10. Additional Settings: Purpose Justification ON, Temporary Auth ON, my email address as Approver
  • I want to use this feature because occasionally I have WP developers helping me w/web site that need occasional access
  1. CORS: Bypass options request OFF, Access Control Allow Credentials OFF
    12 Access Control Allow Origin, Methods, and Headers CHECKED
  2. Cookie Settings ALL OFF, Same Site Attribute LAX
  3. Addl Settings: Enable Auto Cloudflare Authentication OFF, Browser Rendering DISABLED

In testing from a generic dynamic IP (my phone on 5G), I get to the WP-Admin page as if nothing happened.

I’m scratching my head. Any ideas? Its gotta be something simple Im missing.

Still messing around with this and cant get it to work. The Zero Trust email one-time-pin poster never shows on WP-Admin. Hmmmmm, Any ideas? Do I have a setting wrong somewhere?

Im at my wit’s end with this. I have done absolutely everything the instructions say to do, have configured things 5-6 times, and the Cloudflare Access just refuses to run and display on the wp-admin page I am trying to protect. I only wish I was having email issues like others because at least they are getting the Access to show up to begin with.

I cant believe Im the only one unable to get this application to work – at all. Its as if nothing I do has any affect on anything. Ive watched a half dozen “how-to” videos. Im out of ideas. Ive been around computers, servers, and IT for 30 years so Im not a blind novice at technical stuff. Help.

Any ideas? I really need to resolve this.

I notice that my web site’s IP address is 170.x.x.x in Cloudflare DNS settings which is indeed my shared IP address from my hosting platform, but when I ping my domain, I get 104.x.x.x.

Not sure where the 104.x.x.x is coming from. One person told me this is Cloudflare doing its thing. Is this a potential reason for my troubles getting ZeroTrust to work properly?

Which hosting platform are you using for your Wordpress site?

The 104. is Cloudflare’s IP address. This is definitely how it should be, so no worries there.

Im using KnownHost.

Just an idea. I believe /wp-admin redirects you to /wp-login.php. If this redirect is cached by your browser, it would obviously not work, as the /wp-admin path would be bypassed entirely.

Could you check if this is the case on your site, and maybe try from a private browser window?

Yep been trying to Incognito windows and no dice. I go straight to the WP-Admin page.

That should probably be /wp-admin*

If that doesn’t work, can you maybe create a very simple application for a path that you don#t use (i.e. /whatever*)? No groups, no temp auth, nothing, just a simple allow everyone policy.

If that works, add the features you want to use one by one.

I believe I have tried that wp-admin* syntax too with no luck, as well as attempt to block a random static page. Let me try a simpler application rule set on a generic page and see what happens. Not optimistic but Ill report back. Thanks for help.

Nope nothing works. No matter what I do or try I can browse to the page Im trying to block with Zero Trust without issues.

I sitll cant get this to work. Not even on a sample test page URL. Am I just stupid or is there some major setting – perhaps server or host side – Im not accounting for?

Can you share a link to the test page and also show some screenshots of your actual config?

Ugh this is so MADDENING!!!

Here is my test page I am trying to block with Zero Trust just as a test before I even try to to the WP-Admin:

https://www.udpride.com/cloudflare/

Here are my configurations:





I have tried using the URLs:
domain.com/cloudflare
domain.com/cloudflare*
domain.com/cloudflare/

I have tried using email address groups on the policy page (currently unchecked), a simply @domain.com rule, etc etc. Im absolutely empty of ideas at this point. When I say its not working, its NEVER even remotely worked. I have never once seen a Zero Trust policy access page appear on any page of my site when testing.

I am also testing on a generic 5G IP address and not my static IP address I normally connect with that has some WAF rules in place to access wp-admin. This cloudflare test page is just a generic page and so it should be working for everybody that hits it, but at least Im using 5G on my phone to test with to ensure its truly a generic connection and not some other Cloudflare rule set up elsewhere thats preventing it from working.

I gotta get this working. The lack of functionality is killing me. I cant believe I am the only person in the world that seems to be having zero results with zero trust. Ive been in IT and computing for nearly 30yrs so Im not a complete ignoramus.

I’m blocked from that path by the WAF. Can you make an exception for that path?

I have most non USA countries turned off. Must be a country block. Let me know your origination and I can add it.

Germany. Just unblocking paths starting with cloudflare should be fine.

Try now.

I just noticed, that’s on the www subdomain. You haven’t entered the subdomain in your application.

But Im not running any subdomains. Thats why I left it blank. The URL to the cloudflare test page is not a subdomain page.