Pular para o conteúdo
Blog

Vercel 403 in the preview panel on your own site

Vercel shows a 403 in the preview panel or to some visitors while your site works? Find which layer blocked it: firewall, deployment protection or plan.

The Liite team8 min de leitura

Short answer

A 403 from Vercel usually comes from one of three layers: a Firewall deny rule, Deployment Protection, or a blocked deployment (for example after a plan change). Check Firewall logs and Settings > Deployment Protection first, then the status page. If all are clean, retry later and contact Vercel with the time and URL.

Your Vercel site loads fine in its own tab, but the preview panel in the dashboard shows a 403, and a few visitors say they see one too. The error is just a bare status code:

403

The query behind this article ("vercel 403 preview panel" or "vercel firewall blocking my own site") comes from a community thread where this happened on a working site on the Hobby plan. People there suspected the firewall had become more sensitive, and the error later went away on its own. Nobody confirmed the cause, so treat that theory as unproven. What follows is what Vercel's own documentation says can produce a 403, so you can find which layer is responsible.

Why Vercel returns a 403 on a site that works

A 403 means a request reached something that answered, and the answer was "no". It is not a 404 (nothing there) and not a 5xx (a server failed). On Vercel, the platform-wide firewall inspects requests first at the CDN, then deployment protection checks them against your project's access rules, and after that your project's WAF rules apply. A refusal can happen at any of those steps.

The causes, most common first:

  1. A Firewall deny rule. When a request matches a deny rule, Vercel returns a 403 Forbidden response, and the request does not reach your application. That is why your app logs show nothing. The rule can be one you wrote, or a system DDoS mitigation.
  2. A persistent block on an IP. If a WAF rule has a persistent action and blocks a request, the source IP is stored so future requests from it keep being blocked for a set period. That fits "some visitors get 403, others don't".
  3. Deployment Protection. Deployment Protection controls who can access your preview and production URLs. A tool or visitor without access can be refused, which would explain why a panel that fetches your preview behaves differently from your logged-in browser tab.
  4. A blocked deployment. Vercel documents a DEPLOYMENT_BLOCKED 403. Among its troubleshooting steps: if you recently downgraded to the Hobby plan, you may need to redeploy your projects to make them available again.
  5. Your own code. Middleware or an auth check that returns 403 for certain headers, cookies, countries or user agents can refuse a request that looks unlike a normal browser visit.
  6. A platform incident. Vercel's own page notes that platform-wide outages can cause deployments to be blocked.

We can't tell you which one hit the person in the thread. The report is one thread, and the problem cleared without a known change.

Step-by-step fixes

1. Rule out an outage

  1. Open Vercel's status page and look for incidents affecting the dashboard, the firewall or the edge network.
  2. If there is one, wait for it to resolve and retest.

2. Compare the failing request with a working one

  1. Load the production URL in a normal tab and a private window.
  2. Load it from another network, such as your phone on mobile data.
  3. Try the preview panel again after a hard refresh.

If it works elsewhere but not on one connection, the refusal is tied to that IP or network, which points to causes 1 or 2.

3. Check the Firewall

  1. Open the project in the Vercel dashboard and go to its Firewall section.
  2. Look for custom rules with a Deny action, IP blocks or bot settings you didn't mean to enable.
  3. Look at the firewall traffic or logs around the time you saw the 403 and note which rule matched.
  4. If a rule is too broad, switch it to Log first to see what it matches before you change it again. Vercel's docs recommend this, saying to test the Firewall rule with the Log action before using Deny.

The exact menu labels change over time, so use the project's settings or dashboard search if you can't find them.

4. Check Deployment Protection

  1. Go to Settings > Deployment Protection in the project. Vercel's docs describe selecting the project, then opening Settings in the sidebar and choosing Deployment Protection.
  2. Note the scope. Standard Protection protects all deployments except production domains, while All Deployments protects all URLs, including production domains.
  3. If you chose All Deployments and the production domain 403s for outsiders, that is likely the cause. Switch the scope if you want the site public.
  4. If a tool or test needs to reach a protected preview, Vercel offers bypass methods. Deployment Protection Exceptions are available on all plans, and adding a domain to them makes it publicly accessible, so use that only for domains you want open.

Public means public

Exempting a preview domain from protection lets anyone with the URL open it. Don't do this for unreleased work.

5. Check for a blocked deployment after a plan change

If you recently changed plans or got an email from Vercel about a pause, look at the DEPLOYMENT_BLOCKED page in Vercel's error docs. Per that page, a Hobby downgrade may require a redeploy, and you should verify the account is in good standing and hasn't exceeded limits or quotas.

6. Review your own code

If middleware or an auth check returns 403 for certain headers, cookies, countries or user agents, relax it on a branch and see whether the preview recovers. Because Deployment Protection requires authentication for all requests, including those to Routing Middleware, a protection problem can look like a middleware problem. Check the order before you edit code.

7. Wait and retry

In the thread, the 403 cleared by itself. If the status page is clean and nothing in your settings matches, retry after an hour before you change anything permanent.

Which layer is it? A quick table

SymptomLikely layerWhere to look
403 for some visitors onlyFirewall rule or persistent IP blockProject Firewall logs
403 on preview URLs, not productionDeployment ProtectionSettings > Deployment Protection
403 on everything after a plan changeDEPLOYMENT_BLOCKEDVercel error docs, redeploy, account email
403 only for certain headers or countriesYour middleware or auth codeYour code, on a branch
403 everywhere, briefly, then finePossible incidentVercel status page

Two kinds of "no"

Vercel's docs say a Firewall deny returns 403 Forbidden, while Trusted IPs returns 404 No Deployment Found. So a 404 on a protected URL is a different cause from a 403.

Checklist before you try again

  • The status page shows no incident.
  • The site loads in a private window and on another network.
  • No Firewall rule with a Deny action matches the failing request.
  • The Deployment Protection scope is what you intended.
  • You haven't changed plans recently, or you have redeployed since.
  • Your middleware doesn't return 403 for the failing request.

What won't help

  • Redeploying repeatedly. A Firewall or network decision doesn't change with a new build (a redeploy can help after a plan downgrade).
  • Changing DNS records. A 403 means something answered, so DNS is working.
  • Treating one report as proof. One visitor's 403 can be their VPN, network or a browser extension. Ask for the time and whether it happens on another connection.

If nothing works

Contact Vercel support through your dashboard. They can see firewall decisions and system mitigations that you can't. Include the project name, the exact URL, the time with time zone, the screenshot of any matching firewall log entry, and the steps you tried.

Subject: 403 Forbidden on a working site (preview panel and some visitors)

Project: <project name>
URL: <exact URL>
First seen: <date and time, time zone>
Where: dashboard preview panel and some visitors. The site loads in a private window / on another network: <yes/no>

What I checked: status page (no incident), Firewall rules and logs (no matching Deny rule / rule <name>), Deployment Protection scope (<scope>), recent plan changes (<yes/no>), my middleware.

Can you tell me which rule or protection layer returned the 403, and whether a system mitigation is involved?

Common questions

Is a 403 the same as a 404?

No. A 404 means nothing is at that address. A 403 means the server or a protection layer understood the request and refused it.

Will upgrading from Hobby make it go away?

Nothing in the thread or the docs we found says so. Vercel's docs list Standard Protection and All Deployments as available on all plans, so check the layers above before paying.

Why would my own dashboard preview be blocked?

If protection or a firewall rule applies to the preview request, the request can be refused even when your logged-in browser tab works. Compare the two in the Firewall logs.

Why does my app log show nothing for the 403?

A Firewall deny stops the request before your application, so your code never sees it.

A fallback if your site is static

Liite can't diagnose or replace Vercel's firewall. If your site is plain static files, you can upload an HTML file, a zip or a PDF and get a link at <slug>.liite.site while you sort this out. It doesn't run server-side code or build from Git, so it won't host a Next.js app that needs a server. A Free uploaded site needs a card on file and goes offline 7 days after the last publish. See putting an HTML file, a zip or a PDF online.

Vercel's own pages for reference: Firewall concepts, Deployment Protection and the DEPLOYMENT_BLOCKED error.