The proxy requires a username and password: what it means

Why your browser asks for a proxy login, which username and password it wants, and how to remove a proxy you never meant to use.

6–9 minutes
Laptop on a desk seen from above

If your browser pops up a box saying “The proxy http://proxy.example.com:8080 requires a username and password”, your computer is sending web traffic through a proxy server that wants you to sign in first. This guide is for anyone who sees that box, whether on a work laptop or a home computer that should not be using a proxy at all.

The prompt comes from a forward proxy, not from the website you are visiting. If you are on a work or school network, enter the login your organisation gave you (often your normal network account). If you did not set up a proxy, turn it off in your system proxy settings (Windows: Settings > Network & internet > Proxy; macOS: System Settings > Network > Details > Proxies) and check for unwanted software that set it.

What the message means

A proxy is a computer that sits between you and the internet. Your browser hands every request to the proxy, and the proxy fetches the page for you. Offices and schools use them to filter or log web traffic. This is the opposite of a reverse proxy, which sits in front of a website rather than in front of you.

When the proxy wants to know who you are, it answers the browser with the HTTP status code 407 Proxy Authentication Required and a Proxy-Authenticate header that says which kind of login it accepts. The browser then shows the sign-in box. When you fill it in, the browser repeats the request with a Proxy-Authorization header holding your credentials.

Three details in the box are worth reading:

  • The proxy address and portPort A numbered door on a server. Each service listens behind its own door: web pages on 443, email on others, remote login on 22. More about Port →, such as proxy.example.com:8080 or 203.0.113.10:3128. This tells you which proxy is asking. If you do not recognise it, treat that as a warning sign.
  • “Your connection to this site is not private”, which Chrome may add under the prompt. Here it means the proxy is reached over plain HTTP, so the username and password you type could be read by anyone able to watch that network. It is not the same as the certificate warning covered in Your connection is not private.
  • Which site you were opening. The prompt appears for every site, because the proxy is in the path of all your browsing, not just one page.

Which username and password to use

Your situationWhat to enter
Work or school computerThe account your IT team gave you. On Windows networks this is often DOMAIN\username or username@example.com, with your usual password.
Paid or personal proxy you set up yourselfThe proxy username and password from that service, which are usually different from your account login.
Home computer, you never set up a proxyNothing. Cancel the box and remove the proxy, as shown below.
You do not knowDo not guess with your email or bank password. Cancel and check your proxy settings first.

Never type your email, bank or other important passwords into a proxy prompt you do not recognise. A proxy set by unwanted software can collect whatever you enter and see the sites you visit.

How to check and change your proxy settings

Chrome and Edge use your operating system’s proxy settings. Firefox can use its own. Start with the system settings.

On Windows 10 and 11

  1. Open Settings > Network & internet > Proxy.
  2. Under Automatic proxy setup, look at Use setup script. If it is on and you did not set it, note the address and turn it off.
  3. Under Manual proxy setup, look at Use a proxy server. If it shows an address you do not recognise, select Set up (or Edit), switch it off and select Save.
  4. Leave Automatically detect settings on unless your IT team says otherwise. On a home network it normally finds no proxy and does no harm.

If a switch is greyed out with a note that some settings are managed by your organisation, a policy controls it. On a work computer that is expected; ask IT. On a personal computer it can point to unwanted software, covered further down.

On macOS

  1. Open System Settings > Network.
  2. Select the connection you use (for example Wi-Fi) and click Details.
  3. Choose Proxies. Turn off any proxy type you did not set, such as Web proxy (HTTP), Secure web proxy (HTTPSHTTPS The secure version of the web, shown by the padlock. Everything sent between you and the site is scrambled so nobody in between can read or change it. More about HTTPS →) or Automatic proxy configuration.
  4. Click OK.

In Firefox

Open Settings, stay on General, scroll to Network Settings and click Settings. Choose Use system proxy settings to follow the operating system, or No proxy on a home computer that should connect directly.

In Chrome

Go to Settings > System > Open your computer’s proxy settings, which takes you to the system screens above. To see whether a policy is forcing a proxy, type chrome://policy in the address bar and look for entries such as ProxySettings or ProxyMode. To make Chrome pick up a change at once, open chrome://net-internals/#proxy and click Re-apply settings, or simply restart the browser.

When nobody meant to use a proxy

If a home computer suddenly asks for proxy credentials, something changed the settings. Common causes:

  • A VPN or “free proxy” browser extension. Open your extensions list (chrome://extensions or Firefox’s Add-ons and themes) and disable anything that manages proxies or VPN connections. Then reload the page.
  • Leftover settings from a VPN app, a work account or a debugging tool you have since removed.
  • Adware or other unwanted software that sets a proxy to watch or alter your browsing. Run a full scan with your security software, remove programs you do not recognise, then switch the proxy off again. If it keeps turning itself back on, something is still re-applying it.

After cleaning up, change any password you may have typed into the unknown prompt.

If the right password is rejected

On a work network, the box can keep coming back even with the correct password. Things to check:

  • Username format. Try DOMAIN\username and username@example.com. Your IT team can tell you which one the proxy expects.
  • Saved wrong credentials. On Windows, open Control PanelControl panel A website you log into to manage your hosting with buttons and forms, instead of typing commands. cPanel and Plesk are the common ones. More about Control panel → > Credential Manager > Windows Credentials and remove any saved entry for the proxy address, then sign in again.
  • An expired or locked password. If you recently changed your network password, the proxy may still hold the old one, or too many attempts may have locked the account.
  • Single sign-on not working. Many office proxies log you in silently using your Windows sign-in. A computer that is not joined to the company network, or that is off the corporate VPN, often falls back to the prompt instead. That needs IT, not a browser fix.

Using a proxy from the command line

On a server or in a terminal, tools do not show a pop-up. They fail with a 407 instead. With curl you can pass the proxy and the username, and curl asks for the password so it is not saved in your shell history:

curl -x http://proxy.example.com:8080 -U exampleco https://example.com

Many Linux tools also read the http_proxy and https_proxy environment variables. Setting them only lasts for the current terminal session:

export https_proxy=http://proxy.example.com:8080

If a script on a server suddenly reports 407 errors, check whether those variables are set with env | grep -i proxy. A proxy that is not on a standard web port such as 8080 or 3128 also needs that port open in any outgoing firewallFirewall A gatekeeper that decides which connections are allowed into a server and blocks the rest. More about Firewall → rules.

Common problems

SymptomCauseFix
Prompt appears on a home computerProxy set by an extension, old VPN app or unwanted softwareTurn the proxy off in system settings and remove the software that set it
Prompt returns after every restartA policy, setup script or program keeps re-applying the proxyCheck chrome://policy and the setup script setting, then scan for unwanted software
Correct password rejected at workWrong username format or saved old credentialsTry DOMAIN\username, clear Credential Manager entries, ask IT
Only Firefox shows the promptFirefox has its own manual proxy setSet Firefox to Use system proxy settings or No proxy
curl or apt fails with 407Proxy needs credentials the tool is not sendingPass -U to curl or ask your administrator for the proxy login

Official documentation

Get the next guide

One email when there is something worth reading: new guides, errors going around, and hosting changes that affect your site.

No tracking pixels, and one click to leave.

Something out of date? Software changes. If a step no longer works, tell us and we will check it and update the page.