What is Cloudflare Access and why do you need it?
Cloudflare Access is a clever way to protect the critical parts of your web services, such as admin login pages, without complicated VPN set-ups. It is part of the wider Cloudflare Zero Trust platform, and in many cases it can replace a company’s traditional VPN into its internal network altogether.
Cloudflare Access from a technical point of view

If technology isn’t your strong suit but you want to take the security of your WordPress site to a new level, you can skip straight to the set-up steps. In short, Cloudflare Access is an authentication system that acts as a “gatekeeper” between you and your server.
Its job is to keep unknown parties out of the critical parts of your web service. Users have to sign in on a page provided by Cloudflare before any traffic is let through to your server. This follows the Zero Trust principle and is modelled on Google’s BeyondCorp architecture, making it available to everyone.
Supported sign-in methods
You can sign in with many familiar services. Cloudflare Access supports, among others:
- a Google account
- Microsoft Entra ID (formerly Azure AD)
- Okta
- a one-time PIN sent by email (One-Time PIN)
Protecting the WordPress admin with Cloudflare Access
Cloudflare Access can protect almost any resource on the web. The WordPress login page (/wp-admin/) is exposed to brute-force attacks and botnet scans by default. Even if you use a strong password and a password manager, heavy attacks can put a load on the server and slow the site down.
When you put the admin behind Cloudflare Access, attackers can’t even try to log in to WordPress, because they hit Cloudflare’s wall first. This saves server resources and improves security considerably.
Setting up Cloudflare Access
Note: this guide assumes you have already set up Cloudflare’s CDN on your site and pointed your name servers to Cloudflare.
1. The Cloudflare Zero Trust dashboard
Sign in to Cloudflare and choose Zero Trust from the menu on the left. The Zero Trust section is now part of the main Cloudflare dashboard at dash.cloudflare.com. If this is your first time using it, you need to choose a “Team domain” (for example yourcompany.cloudflareaccess.com).

2. Adding sign-in methods
In the Zero Trust dashboard, go to Integrations > Identity providers. Under “Your identity providers”, click “Add new identity provider”.
The simplest option is “One-Time PIN”, which sends a sign-in code by email. Google sign-in takes a little more setting up:
Setting up Google sign-in (OAuth)
- Sign in to the credentials page of the Google Cloud Console.
- Create a new project (Create Project) and name it, for example, “Cloudflare Access”.
- Choose “Create Credentials” and then “OAuth Client ID”. (If you are asked to configure the “Consent Screen”, do that first: choose “External” and fill in the app name.)
- Under Application Type, choose Web application.
- Under “Authorized JavaScript origins”, enter your Team domain in the form
https://yourdomain.cloudflareaccess.com. - Under “Authorized redirect URIs”, enter the address in the form
https://yourdomain.cloudflareaccess.com/cdn-cgi/access/callback. - Click “Create” and copy the Client ID and Client Secret you get.
- Go back to the Cloudflare dashboard, choose the Google method and paste the two values into their fields.
3. Protecting the application (Application Setup)
Now that the sign-in method is in place, it is time to protect the WordPress site itself.
- In the Zero Trust dashboard, go to Access controls > Applications.
- Click “Create new application” and choose Self-hosted and private.
- Application Name: give it a name, for example “WordPress Admin”.
- Session Duration: choose how long a sign-in stays valid (for example 24h).
- Add public hostname:
- Subdomain/Domain: choose the domain to protect.
- Path: enter
wp-admin. This makes sure only the admin is protected, not the whole site.
- Under Access policies, create a new policy (see below).
Who gets in (Policies)
Next, you decide who gets in. Cloudflare Access now works on an “Implicit Deny” basis by default: everyone is blocked unless they are explicitly allowed.
- Give the rule a name (Policy Name), for example “Allow admins”.
- Action: choose “Allow”.
- Configure rules:
- From the “Selector” menu, choose Emails (to allow individual people) or Emails ending in (to allow everyone with your company’s email domain).
- Enter the email address or domain in the value field (for example
@yourcompany.com).
- Click “Save”, add the policy to the application and finally click “Create”.
Testing Cloudflare Access
Check that it works: open your browser in incognito mode and go to https://yourdomain.com/wp-admin/.
You should not see the WordPress login screen but the Cloudflare Access sign-in page. Sign in the way you set up (for example with Google or an email code). Once you are signed in, you are taken to the WordPress admin itself.
If you want your WordPress login and your company’s other admin panels protected but don’t have the time to set it up, take a look at my security services.
Frequently asked questions
Does Cloudflare Access cost anything?
Cloudflare offers a very comprehensive free plan of its Zero Trust service, which includes Access. It is free for up to 50 users, which is enough for most small businesses and organisations.
Does this replace a VPN?
Yes. For web-based applications (such as an intranet, a CRM or the WordPress admin), Cloudflare Access is a modern and more secure alternative to a VPN. Users don’t need to install any separate software on their computers.
What if Cloudflare Access breaks?
Cloudflare is a global service with very high reliability. If it has an outage, in an emergency you can turn off the Access protection for a while in the Cloudflare dashboard.
Does this work with a dynamic IP address?
Yes. Because sign-in is based on identity (for example a Google account or an email address) and not on an IP address, you can sign in securely from anywhere, whether at a café, at home or on a mobile network, without allowing IP addresses in a firewall.



