Free auditStart free
GuideError · HTTP status codes

511 Network Authentication Required

A 511 comes from the network, not the website: a captive portal wants you to log in. How to clear it, how to spot a fake 511, and how apps should handle it.

4 min
read
4
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
The short answer

A 511 Network Authentication Required means the network you are on, not the website, wants you to log in or accept terms first. RFC 6585 says origin servers should not generate it; intercepting proxies and captive portals do. Open a plain http:// page to reach the login page, authenticate, then retry. If your own site sends 511, fix that.

  1. What a 511 is, and who sends it
  2. How a captive portal produces it
  3. Fix it as a visitor
  4. Fix it as a site owner or app developer
  5. What a 511 does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
RFC 6585, section 6
Defined in
Intercepting proxies and captive portals, not origin servers
Who sends it
MUST NOT be stored by a cache
Caching
5xx server error
Class
01511 versus the codes it gets confused with

What a 511 is, and who sends it

RFC 6585 defines it: the 511 status code indicates that the client needs to authenticate to gain network access. The 511 status SHOULD NOT be generated by origin servers; it is intended for use by intercepting proxies that are interposed as a means of controlling access to the network. MDN gives the everyday cases: network operators that require authentication or acceptance of terms before granting access, such as an internet cafe or an airport.
Status

401 Unauthorized

Who is asking for credentials
The origin web server
What you authenticate to
That site or API
Status

407 Proxy Authentication Required

Who is asking for credentials
A proxy the request goes through
What you authenticate to
The proxy
Status

511 Network Authentication Required

Who is asking for credentials
An intercepting proxy or captive portal on the network
What you authenticate to
The network itself (Wi-Fi login, terms of use)

So a 511 is not a fault of the site you were trying to open. It is the network replying in the site's place. The status exists so that software that expects an answer from the real server, especially non-browser clients, can tell the difference. RFC 6585 states that the 511 assures non-browser clients will not interpret the response as being from the origin server, and the meta refresh in its example sends browsers to the login server.

02Check it

How a captive portal produces it

RFC 6585 describes the usual setup. A network operator identifies clients who have not authenticated, often by their MAC addresses. All traffic from those unknown clients is blocked, except traffic on TCP port 80, which goes to an HTTP server dedicated to logging clients in. Your first plain-HTTP request to any site therefore gets the login server's answer.
The login server's response, from RFC 6585 section 6.1
GET /index.htm HTTP/1.1
Host: www.example.com

HTTP/1.1 511 Network Authentication Required
Content-Type: text/html

<html>
  <head>
    <title>Network Authentication Required</title>
    <meta http-equiv="refresh"
          content="0; url=https://login.example.net/">
  </head>
  <body>
    <p>You need to <a href="https://login.example.net/">
    authenticate with the local network</a> in order to gain
    access.</p>
  </body>
</html>
03How it works

Fix it as a visitor

  1. 1

    Open a plain HTTP page

    Type an http:// address (not https://). Per RFC 6585 the portal answers port 80 traffic, so this is the request it can intercept.

  2. 2

    Follow the login link

    The 511 body or its meta refresh points at the portal's login page. Sign in or accept the terms there.

  3. 3

    Reload the site

    After you authenticate, retry the original URL. The 511 response must not be stored by a cache, so a normal reload should show the real site.

  4. 4

    Still stuck?

    Switch networks, for example to mobile data, and retry. If the site loads there, the problem is the first network's portal, and the operator is the person to ask.

A stale favicon is a known side effect. RFC 6585 Appendix B explains that a favicon fetched from a captive portal can stick in the browser's cache beyond the portal session, so the portal's icon appears to have taken over the real site.

04Check it

Fix it as a site owner or app developer

Check whether the 511 is yours. A 511 that reaches your users from your own origin breaks RFC 6585's guidance that origin servers should not generate it. Request your site from a network you trust and from an affected one, and compare.
Handle 511 in a client (not from RFC 6585, a suggested pattern)
const res = await fetch(url);
if (res.status === 511) {
  // The network, not the origin, answered. Do not parse, cache or retry
  // this body as if it came from your API.
  showNotice('Sign in to the network, then try again.');
  return;
}
See who answered
# From the affected network: plain HTTP shows the portal's answer
curl -i http://example.com/

# Read the status line, the Server and Via headers, and the body.
# A 511 whose body links to login.<network>.example is the network,
# not your site.
05Explained

What a 511 does to SEO

Googlebot is not on a hotel network, so a 511 normally never reaches Google. If one does, or if your own server sends it, Google's guide covers 5xx as a class rather than listing 511: 5xx and 429 errors prompt crawlers to temporarily slow down, indexed URLs are preserved but eventually dropped, and content from a 5xx response is ignored. See 5xx server errors, 401 Unauthorized and 407 Proxy Authentication Required.
Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • google.com
  1. 01RFC 6585: Additional HTTP Status Codesrfc-editor.org · checked 2026-11-01
  2. 02MDN: 511 Network Authentication Requireddeveloper.mozilla.org · checked 2026-11-01
  3. 03RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-11-01
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What does 511 Network Authentication Required mean?

The client needs to authenticate to gain network access. The response comes from an intercepting proxy such as a captive portal on the network, not from the website you asked for.

02How do I get past a 511 on public Wi-Fi?

Open a plain http:// page so the portal can intercept it, follow the login link in the response, and accept the terms or sign in. Then reload the site you wanted.

03Why do I see a certificate error instead of a 511?

RFC 6585 says captive portals that use this status on a TLS connection, commonly port 443, generate a certificate error on the client. An http:// address avoids that.

04Is 511 a server error I can fix on my website?

Only if your own origin sends it. RFC 6585 says origin servers should not generate 511. If your users see it on one network only, the network operator controls the portal.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane