Restricting access to the Strapi admin panel

Keep the Strapi admin panel off the open internet with network controls, separate hostnames, VPN access, SSO and admin session settings, and know what to verify before go-live.

On this page

Why restricting Strapi admin access is the first control to set

Restricting access to the Strapi admin panel means keeping the admin interface reachable only from networks and identities you choose, while the public API and website continue to serve visitors. Editorial and platform teams need this when they publish from a Strapi instance but do not want the login page, the admin API or the content manager exposed to the open internet, which is a common target for password guessing and misconfiguration. The admin panel is a separate surface from the end-user API. Administrators sign in to the panel to manage content types, roles and settings, while visitors and front ends reach the content API, and those two paths can be controlled independently. Set this control before go-live because it limits who can even attempt to log in, which makes it the cheapest reduction in exposure available before you tune tokens, permissions or headers.

This page covers five layers: network allowlisting with the ip middleware, separate hostnames or paths for the admin panel, VPN access, single sign-on for administrators and admin session settings. Keep in mind that Strapi SSO applies only to administrator login through an identity provider, with auto-registration, a default role and an optional lock-out of local login. End-user authentication is handled separately by the Users & Permissions plugin, so SSO does not change how readers or customers sign in. Plan tier also matters. In the self-hosted plans, SSO is an add-on for Growth and included in Enterprise, and audit logs and review workflows are Enterprise features. Confirm which tier your organization needs before you design the login model, because a choice made later can change the controls available to you. Check current plan terms on the Strapi self-hosted pricing page rather than relying on figures from older documentation.

Which access restriction fits which environment

This table compares four ways to keep the Strapi admin panel off the open internet: IP allowlisting, a separate admin hostname or path, VPN or private network access, and SSO with admin session settings. Read each row for when the option fits, what it leaves open, and what it implies for plan choice and effort. Confirm every middleware option name against the Strapi docs for your version before you configure it.

Access optionWhen it fitsWhat it does not coverPlan and effort implications
IP allowlist with the ip middlewareSmall teams with fixed office or egress addresses, and as a second layer in front of other controlsStolen credentials used from an allowed address, shared NAT ranges, and remote staff on changing addressesIncluded in the open-source code. Confirm the exact option names and behavior for your Strapi version. Allowlists need upkeep whenever addresses change
Separate admin hostname or pathTeams that want the admin panel on its own host so reverse proxy rules can restrict it cleanlyDoes not stop anyone who can reach that host, and a path split alone can be bypassed if the API is still exposed on the same hostNeeds DNS, TLS certificates and proxy rules for the new host. Split admin hosting is covered in deployment guidance, so confirm your setup against it
VPN or private network accessOrganizations that already run a VPN or private network and want the admin panel unreachable from the public internetDoes not authenticate individual administrators, and a compromised VPN account exposes the panelDepends on existing network tooling. Expect ongoing VPN client and access management. Ask your network team to confirm routing and split-tunnel rules
SSO for admin login with session settingsRegulated or larger teams that need named accounts, central offboarding and an audit trail of who signed inDoes not restrict the network path to the admin panel, and it does not replace IP or VPN controls. Local login lock-out must be set deliberatelySSO is an add-on for the Growth plan and included in Enterprise, according to Strapi's self-hosted pricing page. Audit logs are an Enterprise feature. Confirm current plan terms before you decide

How to lock the admin panel down before go-live

This sequence moves the Strapi admin panel off the open internet and onto a boundary you control, with sign-in tied to your identity provider and sessions kept short. Each step ends with a check so the team can prove the admin is reachable only where it should be and the public API still responds.

  1. Inventory who needs admin access and from where

    Before changing any configuration, list every group that signs in to the admin panel, such as editors, content leads, developers and support staff, and the networks or locations each group works from. Include service accounts or scripts that call the admin API, because they may need a different path than people. Record the owner for each group and the role each one holds in Strapi. The step is done when the list is signed off by the content owner and the security lead, and every admin user can be matched to a group.

  2. Choose the network boundary for admin traffic

    Decide where admin requests are allowed to come from. Common options are a corporate egress range, a VPN or zero-trust access gateway, or a private network reachable only from internal hosts. Confirm with your network team which address ranges are stable and whether remote staff reach the network through a shared gateway, since that determines what an allowlist can match. Document the decision and the reasons for it. The step is done when the boundary and its owner are written down and the network team has confirmed the ranges.

  3. Configure the allowlist or private route

    Apply the boundary in Strapi or in the layer in front of it. Strapi's ip middleware can restrict requests by address, but the address Strapi sees depends on your reverse proxy and trusted proxy settings, so confirm how client IPs are forwarded before relying on them. Where a VPN or gateway is used, you may restrict the admin route at the proxy instead. Keep the rule scoped to the admin paths so the content API is not blocked by accident. The step is done when the configuration is committed to version control and reviewed.

  4. Move the admin to a separate hostname or path

    If your design calls for it, serve the admin panel from its own hostname or internal path, and keep the public API on a separate host. This makes it easier to apply different access rules, certificates and logging to each. Check that the admin build, its asset URLs and the CORS and cookie settings match the new host, and that editors reach it with the expected URL. Keep the change small and test it in a non-production environment first. The step is done when the admin loads on the new host and the public API host still returns the expected responses.

  5. Enable SSO and lock local admin login

    Connect the admin panel to your corporate identity provider using Strapi's SSO feature. Note that in Strapi's self-hosted plans, SSO is an add-on for Growth and included in Enterprise, so confirm your plan before planning this step. Set the default role for auto-registered users to the least privileged role that works, and decide whether local login stays enabled for break-glass accounts. If you lock local login, record who holds the emergency access and where its credentials are stored. The step is done when a test user signs in through the identity provider and local login behaves as the decision requires.

  6. Tune admin session settings

    Review the admin session and JWT-related settings in your configuration, including how long sessions last and how they are refreshed, and align them with your organization's session policy. Confirm which secrets protect admin tokens and that they are stored outside the code repository. Make sure sessions end when a user is deprovisioned in the identity provider. Ask your Strapi partner or the official documentation for the exact configuration keys for your version. The step is done when the settings are documented and a test session expires as expected.

  7. Test access from allowed and disallowed networks

    Run the checks from inside the allowed boundary, from a disallowed network, and from an anonymous client. From the allowed network, an authorized user should sign in and reach the admin. From a disallowed network, the admin should be refused or unreachable, and the refusal should be logged. Then send an anonymous request to the public content API and confirm it still responds as designed, so the admin restriction did not break front ends or integrations. The step is done when the results are recorded in a test log attached to the go-live checklist.

  8. Confirm monitoring and a rollback path

    Confirm that denied admin requests and admin sign-ins are logged somewhere your security team reviews. Audit logs as a Strapi feature are listed as an Enterprise plan item, so check which logs your plan provides and where proxy or identity provider logs fill the gap. Write a short rollback procedure that restores the previous routing and access rules if an editor cannot reach the admin on launch day. The step is done when the logging source is named, someone is assigned to review it, and the rollback steps have been rehearsed once.

How admin requests reach Strapi through the trust boundary

The diagram starts with an editor's device and splits into two paths. Admin traffic must cross the trust boundary through a VPN or allowed network and a reverse proxy with an IP allowlist before it reaches the Strapi admin panel, which hands sign-in to the identity provider for SSO. Public API traffic from website visitors takes a separate route to the Content API and does not pass the admin restriction. Check that the admin hostname or path is blocked at the edge for every other network, and that the public route never shares that rule.

Admin traffic crosses the allowlist boundary, while public API traffic takes a separate route.

Security and operational risks in admin access control

Restricting the admin panel is only as strong as the network path, identity settings and records around it. The cards below cover the places where a well-intended allowlist, SSO setup or proxy configuration quietly leaves the panel reachable or unaccountable. Check each one against your Strapi version and hosting layout before go-live.

Spoofed client IP headers

An IP allowlist is only as reliable as the address Strapi believes the client has. When Strapi sits behind a reverse proxy or load balancer, forwarded headers such as X-Forwarded-For can be set by the client unless the proxy overwrites them and Strapi trusts only that proxy. Confirm which header Strapi reads for the client address, which proxies it trusts, and whether your edge layer strips inbound copies of that header. Test the allowlist from an address that should be blocked by sending a forged header.

Strapi install docs

Admin routes on a shared hostname

Many teams serve the public API, the front end and the admin panel from one hostname, with the admin under a path such as /admin. A rule written for the admin path can miss variants, and a proxy rule that matches only one path prefix may leave the panel reachable through another route. Map every hostname and path that reaches the Strapi process, decide which ones carry admin traffic, and confirm that the restriction applies at the edge and in the application. Separate hostnames make the boundary easier to review.

Local login left enabled beside SSO

When SSO is configured for administrators, a local email and password login often remains available. Any restriction that depends only on the identity provider is then bypassed by someone who can reach the login form and knows or guesses a local account. Decide whether local login is locked out once SSO works, who keeps a documented break-glass path, and how that path is stored and monitored. Confirm the exact lock-out behavior in your Strapi version and in the SSO settings you deploy.

Strapi SSO docs

Session lifetime and logout handling

Admin sessions that last too long keep access alive on shared or unattended workstations, and a removed employee may keep a working session until it expires. Review the admin session and JWT lifetime settings, whether logout invalidates the server-side session, and what happens to active sessions when a user is deactivated in the identity provider. Test each case with a real account: log out, revoke access, then try the old session. Record the results so the next Strapi upgrade does not silently change them.

Logging and review of admin access

Restriction without records makes incidents hard to reconstruct. Admin logins, failed logins, role changes and content publishing should land in logs that the security team can search and keep for an agreed period. Audit logs are listed as an Enterprise feature in Strapi's self-hosted plans, so confirm early whether your plan includes them or whether you need to collect authentication events from the proxy, identity provider and application logs instead. Set a regular review of who holds admin roles.

Self-hosted plans

Allowlists that drift over time

IP allowlists describe where staff worked on the day they were written. Offices move, contractors leave, home networks change and VPN egress addresses are reassigned, so entries go stale in both directions: legitimate users get locked out, and forgotten entries keep old addresses trusted. Assign an owner to the list, tie changes to joiner and leaver steps, and review it on a fixed schedule. Ask your network team how egress addresses are assigned and whether they can be pinned for the admin path.

How SSO and the Users and Permissions plugin divide responsibilities

Strapi SSO governs administrator login to the admin panel only. Connecting an identity provider such as Microsoft Azure Active Directory decides who can sign in to the admin panel, but it does not decide who can read or call the public API. Auto-registration creates an admin account on first successful sign-in and assigns a default role, and the optional local login lock-out can disable email and password sign-in to the admin panel so that the identity provider becomes the only path in. Before go-live, confirm the default role in the SSO settings is the least-privileged role you are willing to grant automatically, and confirm with your identity team how accounts are disabled when someone leaves, since an admin account created by auto-registration does not disappear when the directory entry does.

End-user authentication is a separate system. The Users and Permissions plugin handles accounts and roles for people who use your front end or applications, and its Public and Authenticated roles control what API calls succeed. Changing the admin SSO configuration does not change those permissions, and changing the Users and Permissions roles does not change who can open the admin panel. For access reviews, this means two inventories: one of administrator accounts and their roles in the admin panel, exported from the identity provider and checked against Strapi, and one of the Users and Permissions roles and the endpoints each role can reach. Keep both in the same review cycle so that a person removed from the directory is also removed from admin access, and an end-user role change is reviewed against the public API it exposes.

To keep the public API separate from the admin panel, plan the review around the paths that reach each surface, not only around who has an account. Confirm which hostname or path serves the admin panel and which serves the API, and test that an authenticated end user cannot reach admin routes with their own token. Ask your identity team to confirm which groups map to which Strapi admin roles before rollout, and document the lock-out decision so that whoever later reenables local login knows it was a deliberate change. Confirm the SSO feature availability for your plan in the Strapi self-hosted pricing page, because SSO is an add-on on Growth and included in Enterprise.

Limits to confirm in your environment before relying on these controls

The controls on this page depend on your Strapi version, plan, network layout and identity provider. Confirm each item below in your own environment before you treat an allowlist, hostname split or SSO setup as a finished control.

Plan coverage for SSO and audit logs

Admin SSO and audit logs are not available on every self-hosted tier. According to Strapi's self-hosted pricing page, SSO is an add-on for Growth and included in Enterprise, while audit logs are an Enterprise feature. Confirm with Strapi which plan your project needs before you design the login path, and get that in writing as part of your procurement. Ask whether the plan terms change for your number of administrators.

Self-hosted pricing

IP allowlist behind a load balancer

The ip middleware decides access from the address Strapi sees. Behind a reverse proxy or load balancer, that address may be the proxy's address rather than the client's, which can allow or block the wrong traffic. Check how your proxy sets forwarded headers, whether Strapi trusts them, and how the trusted proxy setting is configured in your version. Test from an address that should be blocked, not only from an allowed one.

Separate hostname for the admin panel

Serving the admin from its own hostname or path is useful for routing and for network policy, but the exact supported approach depends on your Strapi version and build settings. Confirm with Strapi's documentation or support whether your version supports serving the admin panel from a different hostname, how the admin URL and API URL are set, and whether public API routes are affected. Verify with a staging build before you change DNS or ingress.

VPN client support on your endpoints

If administrators reach the admin panel only through a VPN, every device and operating system they use must have a supported client that your policy allows. Check which VPN products your endpoint management covers, whether split tunneling is permitted, and whether the VPN gateway's address is what Strapi sees for the allowlist. Ask your network team to confirm this for managed and unmanaged laptops before you rely on the VPN as the only path.

Identity provider configuration requirements

Strapi SSO applies to administrator login through an identity provider, with auto-registration, a default role and an optional local login lock-out. Confirm which provider types and protocol settings your Strapi version supports, which redirect URLs you must register, and how group or role mapping works. Check what happens if the provider is unavailable, and keep a documented break-glass path that your security team approves.

Strapi SSO docs

Questions teams ask before restricting Strapi admin access

What does restricting Strapi admin access cost, and what drives it?

The cost depends on how many paths reach the admin panel, whether you need SSO, and how many environments must match. Your team pays for network and identity provider staff time. Fixed-scope work from DeployOpen is quoted from the written scope, and DeployOpen does not publish a price list. Some costs are one-time, such as allowlist rules, SSO setup and testing. Others recur, such as updating allowlists when offices or remote staff change, renewing plans, and any retainer you choose for ongoing support. Ask for the quote as separate lines: discovery, network changes, SSO setup, testing, handover and any recurring support. Also confirm whether you need a VPN or bastion host that you do not yet have, because that adds infrastructure cost before the Strapi work begins.

How long does it take to lock down the Strapi admin panel?

The duration depends on your environment more than on Strapi itself. The main factors are the access path you choose, how quickly your network team can approve firewall or load balancer changes, whether your identity provider is ready, how many environments need the same rules, and whether a VPN already exists. Strapi 5 minor releases have shipped roughly weekly, so you should also decide which version you will pin and when you will test upgrades, since that affects scheduling. No duration is fixed in this guide. Ask for milestones in the written scope, with dependencies on your change windows, named approvers and the testing window before go-live.

What does our team need to provide for this work?

Four groups of people usually need to contribute. Your identity provider administrator must register Strapi as an application and confirm group or role mapping if you use SSO. Your network team owns the firewall, load balancer, DNS and VPN changes that enforce the allowlist. An approver signs off on which networks, offices and remote access ranges may reach the admin panel. Finally, someone must own the public site so testing can confirm that front ends, preview and webhooks still work after the change. Agree on these owners and their availability before the work starts, because most delays come from waiting on change approvals rather than from the Strapi configuration itself.

Can an internal team restrict Strapi admin access without a partner?

Yes, an internal team with Strapi, network and identity skills can do this without a partner. The work combines application configuration with network enforcement, so it helps to have engineers from both sides in the same room. The main risks are locking out every editor, blocking machine callers that share the same path, and misconfiguring SSO. A careful internal rollout stages the change in a non-production environment, keeps a recovery account that does not depend on SSO, and tests from both inside and outside the allowed network. If your team lacks time or experience with one of these areas, DeployOpen can plan and deliver the work under a fixed scope, or support it through a retainer.

Do we need a Growth or Enterprise plan for admin SSO?

For self-hosted Strapi, the pricing page lists SSO as an add-on for the Growth plan and includes it in the Enterprise plan. The Growth plan is listed at 45 US dollars per month including 3 users, plus 15 dollars per extra user, but confirm the current price of the SSO add-on on the pricing page before you budget, because it is not stated in the figures used for this guide. Strapi's SSO applies only to administrator login to the admin panel through an identity provider. End-user login is handled separately by the Users and Permissions plugin. Restricting access with an IP allowlist or VPN does not require SSO, so you can start with network controls and add SSO later if your plan or policy requires it. Review the Strapi self-hosted pricing page for current plan contents.

How do we test that the public site still works after the change?

Test from both sides of the new boundary. From an allowed network, confirm that editors can reach the admin panel and sign in. From an outside network, confirm that the admin panel is blocked, and that the public Content API endpoints your front end calls still respond. Include every consumer in the test: the production front end, preview links, build hooks and webhooks, scheduled jobs and any service that calls Strapi from a fixed address. Check that CORS and preview still behave correctly after any hostname or path change. Record the results, including the client IP the application sees behind your proxy, because a wrong proxy header can make an allowlist check the wrong address.

What goes wrong when admin access is restricted incorrectly?

The most common failures are predictable. Editors on home, hotel or mobile networks lose access because their addresses were not on the allowlist. Automated jobs, webhooks or build hooks that share the admin path stop working, so content publishes silently fail. A reverse proxy or load balancer hides the real client address, so the allowlist checks the proxy instead of the user. SSO misconfiguration can leave administrators unable to sign in, and a local login lockout can make recovery harder if no fallback account exists. Prevent these problems by listing every caller before the change, testing behind your actual proxy chain, keeping a tested recovery path, and scheduling a rollback plan with named owners for the change window.

Which admin session and login settings should we review?

Review three areas. First, decide how administrators authenticate: network restriction alone, SSO through your identity provider, or both. If SSO is enabled, the Strapi SSO documentation describes auto-registration, a default role and an optional lock-out of local login, so decide deliberately whether local login stays available for recovery. Second, confirm the admin session lifetime and how sessions end when someone leaves the organization or changes roles. Third, check login rate limiting for the admin panel and whether attempts from unknown networks are logged. Session settings differ between Strapi versions, so confirm the exact configuration keys in the documentation for the version you run, and test each change in a staging environment before production.

How to verify the restriction works after deployment

Test the admin panel from both sides of the boundary before anyone signs off. From a machine on a permitted network, such as the office range or the VPN pool you allowed, confirm that the admin login page loads and that an administrator can sign in. Then repeat the same request from a network you did not allow, including a home connection and a cloud instance outside your range. The blocked request should fail at the proxy, the firewall or the ip middleware, and it should never reach the Strapi login screen. Test the admin path, the separate hostname if you use one, and any direct port exposed by the container, because a restriction applied at only one of these entry points is not a restriction. Record the source address each test used so the results can be compared later.

Confirm that everything that should stay public still works. Call the public Content API from an anonymous client and load the front end that depends on it. Restricting the admin panel should not change those responses, but a single rule written against the wrong path can block the API, the upload URLs or a webhook receiver. Also check the authentication behavior you configured. If admin SSO is enabled, sign in through the identity provider as a test administrator and confirm that the default role is the one you intended. If local login is meant to be locked out after SSO, attempt a local login and confirm it is refused, and confirm that an emergency path your runbook names still works. Ask your identity team to confirm which local accounts remain and where that decision is documented, since that list changes over time.

Check the logs and repeat the checks after any change. Blocked requests should appear in the reverse proxy or load balancer logs with the source address and the status returned, and you should confirm that your log pipeline captures them and that someone reviews them. Do not rely on the Strapi application log alone, because a request blocked upstream may never reach the application. Repeat the full set of checks after every change to the proxy, ingress, VPN configuration, CDN, load balancer or Strapi version, since a new hop can change the source address Strapi sees. If a load balancer or proxy sits in front of Strapi, confirm how forwarded client addresses are passed through and trusted, because an incorrect trust setting can make an allowlist check see the wrong address. Keep the test results with your change records so an auditor or security reviewer can see the restriction was verified, not only configured.

What the client team provides and what DeployOpen delivers

Restricting the admin panel depends on inputs that only your organization holds, such as network paths, identity access and the people who approve admin roles. The cards below list what your team supplies before the change window and what DeployOpen hands back once the restriction is in place and tested.

Network and VPN details

Provide the VPN gateway address range, the internal subnets that should reach the admin panel, and the public addresses that must be blocked. Confirm whether administrators connect through a split-tunnel or full-tunnel VPN, because that determines which source address Strapi sees. Also confirm which hostname or path the admin panel will use after the change, so the allowlist and the proxy rules match the address that actually reaches the server. Record any NAT or load balancer in front of Strapi, since it can hide the real client address.

Identity provider access

If administrators will sign in through SSO, provide an account on the identity provider with rights to create the application registration, along with the callback URL that Strapi must use. Confirm which group or attribute maps to the Strapi administrator role and whether auto-registration should create new administrators or only accept existing ones. Keep at least one break-glass path documented so a provider outage does not lock every administrator out.

Strapi SSO docs

Named approver for admin roles

Name one person who approves which accounts receive super admin and other privileged roles during and after the change. The approver confirms the list of administrators that the allowlist and SSO mapping must support, and signs off on any role changes made during testing. Without a named approver, role decisions made during the work tend to persist without review, so agree the approval route and the response expectation in writing before the change window.

Reverse proxy or gateway configuration

Provide read access to the reverse proxy or API gateway configuration that fronts Strapi, and the change process for it. Restriction may be applied in the proxy, in the Strapi ip middleware, or both, so the team needs to know which layer owns each rule. Confirm how the proxy forwards client addresses and whether trusted proxy settings are already defined, since an incorrect setting can make every request appear to come from the proxy itself.

Test accounts and test devices

Supply at least one administrator test account for each role that must keep access, plus one account that should be denied, and a device or network location that falls outside the allowlist. Testing a restriction with only the administrator who configured it does not show whether other roles and locations behave as intended. Agree how test credentials are created, stored and removed after verification, so they do not remain as standing access.

Change window and rollback contact

Agree a change window with the operations team and name the person who can approve a rollback during it. Admin access changes can block editors and deployment pipelines at once, so confirm which teams must be told before the window opens and which content or publishing jobs must pause. Document the rollback steps the team will use if the allowlist blocks a required network, so the restriction can be reverted without guessing.

How DeployOpen scopes and delivers admin access controls

DeployOpen plans admin panel access as part of a written scope, covering network paths, identity sign-in and session rules for the Strapi admin. The work is delivered inside your own infrastructure, so your security and identity teams can review each control before the panel goes live.

How we scope

  • Map which teams, networks and locations need admin panel access and which should never reach it.
  • Agree in writing whether access uses an IP allowlist, a separate hostname, VPN access or a combination.
  • Confirm whether administrator sign-in will use SSO, and which Strapi plan that requires before work starts.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing; ongoing support is available as a retainer.

How we build

  • Configure the ip middleware or proxy rules against your documented admin address ranges and ingress path.
  • Separate the admin hostname or path from the public API, and confirm the front end still reaches its endpoints.
  • Set admin session lifetimes, lock-out behavior and local login rules, then test them against your identity provider.
  • Test the panel from outside the allowed network to confirm that blocked requests fail as intended.

How we hand over

  • Deliver written configuration with each setting, its purpose and the file or environment where it lives.
  • Provide a test record showing allowed and denied access paths, including how each result was checked.
  • Document a runbook for adding or removing administrators, rotating VPN or allowlist entries and recovering access.

How we support

  • Review admin access settings again after Strapi upgrades, proxy changes or identity provider changes.
  • Retest the admin panel access rules on a schedule agreed in the retainer, if you choose ongoing support.
  • Ask for a quote that lists the scope, deliverables, retest steps and any handover sessions before you commit.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.