How to whitelist a specific route protected by Octauthent

Octauthent
2 min readMar 5, 2025

--

When you protect a route using Octauthent, you may have noticed that all child routes starting with the same pattern are also protected.

For example, if you decide to protect example.com/private* with a password, it will protect all the following routes.

  • example.com/private
  • example.com/private/child
  • example.com/private/child/grandchild

For now, Octauthent doesn’t provide a native way to protect everything except one specific route (AKA whitelisting).

In this tutorial, you’ll learn how to whitelist a route directly from your Cloudflare dashboard!

The first thing to do is to open the home page of your Cloudflare dashboard. Just click here: https://dash.cloudflare.com/

You’ll see a list of domains, click on the one that is protected by Octauthent

In the left menu, click on “Workers Routes”.

In the right part, you’ll see a list of routes already protected by Octauthent.

Click on the “Add route” button

Enter the URL of the route to whitelist, and keep “None” in the worker field.
N.B: you can use wildcards (*) if you want!

Congratulations! You’ll now see the whitelisted route in the routes list!

In the screenshot below, “Workers are disabled on this route” means that Octauthent will not protect it.

If you change your mind, just click on “Edit” to change or remove it!

That’s it!

Whitelisting routes directly from Cloudflare is a safe way to protect everything except specific URLs

N.B: You can still edit the protected routes directly from your Octauthent dashboard, it won’t affect your whitelisted routes!

--

--

Octauthent
Octauthent

Written by Octauthent

Password protection made easy

No responses yet