When a browser or terminal displays the message “the proxy requires a username and password” (or returns an HTTP 407 Proxy Authentication Required response), it means the proxy gateway restricts access to authorized accounts. To resolve it immediately, verify that the prompt actually comes from your proxy server rather than an untrusted website, enter the dedicated proxy credentials issued in your provider’s dashboard (not your computer login password), and save those details in a browser extension or properly encoded proxy URL.
This guide walks through what proxy authentication is and how to check that a login prompt is safe, breaks down why credential pop-ups keep repeating even after you enter a password, and provides step-by-step setup instructions across web browsers, Windows and macOS systems, and command-line tools.
What “The Proxy Requires a Username and Password” Means
Unlike open public proxies that accept traffic from anyone, private residential, ISP, and datacenter gateways verify each incoming connection before forwarding requests to the target website.
How HTTP 407 Works
When an application sends traffic through an authenticated proxy without valid login headers, the proxy server intercepts the request and returns an HTTP 407 Proxy Authentication Required status code along with a Proxy-Authenticate header. That header tells the client which authentication method the gateway expects—most commonly Basic, Digest, NTLM, or Negotiate. Once the browser or script resends the request with a matching Proxy-Authorization header, the gateway opens the tunnel and routes traffic normally.
How to Check If the Prompt Is Safe
Before typing any password into a pop-up dialog, inspect the address shown in the prompt header:
- Genuine Proxy Gateway Prompt: Browsers display the proxy server’s own IP address, hostname, and port—for example,
moz-proxy://203.0.113.10:8080in Firefox or a system dialog naming your configured proxy host and port. - Target Website Login Prompt: If the dialog shows the domain name of the website you are visiting (such as
example.com), the website itself is requesting HTTP authentication, not your proxy server. - Suspicious In-Page Pop-Ups: Never enter proxy credentials into an HTML form rendered inside a webpage body or after seeing an invalid SSL/TLS certificate warning.
Which Credentials to Enter
A proxy authentication dialog expects the proxy access credentials assigned to your proxy port or sub-user account—not your personal device password. Depending on your setup, those details come from one of two places:
- Commercial Proxy Dashboard: A dedicated proxy username and password generated by your proxy provider (often distinct from the email and password used to log into the provider’s billing website).
- Corporate or Campus Network: A network gateway username and password issued by your IT administrator.
Why Does the Proxy Login Prompt Keep Appearing?
Entering the right password once does not always make the prompt go away. The diagnostic table below maps the most common symptoms to their underlying causes before examining each root issue in detail.
| Symptom | Most Likely Cause | Where to Check First |
| Pop-up reappears immediately after clicking Sign In | Typo, trailing space, or expired proxy plan | Copy credentials cleanly from dashboard and check plan status |
| Browser asks for login again after every restart | OS proxy settings do not store passwords | Save credentials in a browser extension or password manager |
| Chrome fails to connect with a SOCKS5 password | Chromium extensions lack native SOCKS5 auth support | Switch to an HTTP(S) endpoint or local forwarding client |
| cURL or script fails with HTTP 407 | Unencoded special characters or auth scheme mismatch | Percent-encode symbols like @ and check Proxy-Authenticate |
| Windows proxy menu has no password field | Windows network UI stores only IP:Port | Use a browser extension or desktop client that stores logins |
- Copy-Paste Spaces and Look-Alike Characters
Manually highlighting proxy credentials from a dashboard or text file frequently captures an invisible space at the beginning or end of the password string. Look-alike characters—such as lowercase l, uppercase I, and the number 1, or uppercase O and 0—also cause silent authentication rejections when typed by hand.
- Unencoded Special Characters in URLs
When passing credentials inside a single connection string (username:password@host:port), reserved URI symbols inside the password break URL parsing. If a password contains @, :, /, #, or %, the client mistakes those symbols for host or port delimiters and sends a truncated password to the proxy server.
- Browser and OS Storage Limits
Operating systems and browsers handle proxy password storage unevenly. Windows system proxy settings and netsh winhttp commands store only the proxy hostname and port without saving credentials, forcing browsers to re-prompt on every new session. In addition, native Chromium browser extension APIs do not support passing usernames and passwords to SOCKS5 proxies; understanding Chrome SOCKS5 authentication limits explains why entering SOCKS5 credentials in standard Chrome extensions fails or stalls connections.
- Protocol Mismatches or Expired Plans
Some command-line clients default to Basic authentication even when a corporate gateway requires Digest, NTLM, or Negotiate, triggering repeated 407 rejections. Authentication also fails if your proxy subscription has expired, your traffic quota is depleted, or your provider account is locked to IP-whitelisting mode instead of username/password mode.
How to Configure and Save Proxy Credentials

Once you have confirmed the gateway address and verified your credentials, apply the setup method that matches your browser, operating system, or command-line workflow.
- Web Browsers and Extensions
- Mozilla Firefox: Open Settings > General > Network Settings > Settings, select Manual proxy configuration, and enter your HTTP, HTTPS, or SOCKS5 host and port. When you open a webpage and the authentication dialog appears, enter your proxy username and password and click Save in Firefox’s password prompt so future sessions log in automatically.
- Google Chrome and Microsoft Edge: Both browsers inherit system-level network settings by default, which lack a persistent password field. For HTTP or HTTPS proxies, use a dedicated proxy manager extension (such as ZeroOmega or FoxyProxy) to store your host, port, username, and password in one profile. If your workflow requires authenticated SOCKS5 routing inside Chrome, evaluate dedicated SOCKS5 proxy configurators or route traffic through a local forwarding client that handles authentication before passing traffic to the browser.
- Isolated Multi-Account Browsers: Teams running separate regional sessions typically configure proxy credentials per profile rather than globally. Following a clean browser profile setup binds each proxy username and password to its own isolated cookie and fingerprint environment without repeated login pop-ups.
- Windows and macOS System Settings
Windows Settings > Network & internet > Proxy and the netsh winhttp set proxy command record only the proxy server’s IP address and port—neither saves a username or password. As a result, system-wide applications either prompt repeatedly or fail silently in the background. On macOS, System Settings > Network > Details > Proxies includes built-in username and password fields for HTTP and HTTPS proxies, though SOCKS5 authentication still depends on third-party client support. When every desktop application on Windows or macOS must route through an authenticated proxy without interruption, configure the credentials inside a local system-level proxy client rather than relying on bare OS host/port fields.
- Command-Line Tools and URL Encoding
When configuring proxy strings in cURL, Python scripts, or CI pipelines, place the credentials directly before the @ symbol:
http://username:password@host:port
socks5h://username:password@host:port
If your password contains reserved URI characters, replace them with percent-encoded equivalents before inserting the string into a URL:
| Reserved Character | Percent-Encoded Value | Example (p@ss:1 → Encoded) |
| @ | 40% | p%40ss:1 |
| : | %3A | p@ss%3A1 |
| / | %2F | p@ss/1 → p@ss%2F1 |
| # | 23% | p@ss#1 → p@ss%231 |
| % | 25% | p@ss%1 → p@ss%251 |
| ? | %3F | p@ss?1 → p@ss%3F1 |
To diagnose an HTTP 407 error from the terminal, run a verbose test request:
curl -v -x http://username:password@host:port https://httpbin.org/ip
Check the Proxy-Authenticate response header right below HTTP/1.1 407:
- If the server requests
Digest,NTLM, orNegotiateinstead ofBasic, add--proxy-anyauth(or--proxy-ntlm/--proxy-digest) socURLnegotiates the required handshake. - Note that starting with
cURL8.20.0, failed proxy tunnel connections return exit code7instead of the older exit code56, which is worth updating if your monitoring scripts alert on specific exit codes.
Build a full proxy knowledge framework — from core principles to protocol selection
How to Simplify Proxy Authentication with IPFLY

Repeated HTTP 407 errors often stem from inconsistent credential formatting or gateways that support only one transport protocol. IPFLY generates standardized Host:Port:Username:Password strings directly in the dashboard and supports both HTTP and SOCKS5 connections across its endpoints, making it straightforward to move between browser extensions, desktop clients, and automated scripts—or to wire endpoints into a self-hosted proxy integration without rewriting credentials.
Depending on whether your workflow needs rotating locations or a fixed login endpoint, you can match authentication settings to three core proxy types:
- IPFLY Residential Proxies: Provide a global pool of real residential IP addresses where a single authenticated gateway endpoint lets you specify country, city, and rotation or sticky-session parameters via your proxy username string, billed by traffic volume. This setup suits multi-region testing and high-concurrency data collection where credentials stay constant while exit IPs rotate.
- IPFLY ISP Proxies: Deliver dedicated, non-rotating IP addresses hosted on real Internet Service Provider (ISP) infrastructure with fixed credentials, billed per IP and duration. They fit long-running browser profiles and account workflows that require the same IP and login session over weeks.
- IPFLY Datacenter Proxies: Offer dedicated static server IP addresses with high bandwidth and low latency using standard username/password authentication, billed per IP and duration. They work well for internal API testing and speed-sensitive automation, though strict commercial targets may scrutinize data-center ranges more closely than residential endpoints.
Frequently Asked Questions
Which username and password should I enter?
Enter the dedicated proxy access credentials generated in your proxy provider’s dashboard or issued by your network administrator, rather than your computer login or website account password.
Why does HTTP 407 happen with the right password?
It usually happens when the password contains unencoded special characters like @ or :, includes an accidental trailing space, or requires an authentication scheme such as Digest or NTLM instead of Basic.
Can Chrome extensions use SOCKS5 passwords?
Standard Chrome proxy extensions cannot natively pass SOCKS5 usernames and passwords through the browser’s proxy API, so you must use an HTTP(S) proxy or a local forwarding client.
How do I encode special characters in a proxy password?
Replace reserved URI characters inside the password with their percent-encoded values—such as %40 for @, %3A for :, and %25 for %—before placing them into a username:password@host:port string.
Should I use password auth or IP whitelisting?
Use username and password authentication when connecting from dynamic home networks, laptops, or mobile connections, and choose IP whitelisting when running automated tasks from a server with a fixed public IP.
Conclusion
Fixing the “the proxy requires a username and password” prompt comes down to verifying that the dialog belongs to your proxy gateway, entering clean or properly percent-encoded proxy credentials, and saving them in a browser extension or local client that supports persistent authentication. When your projects span multiple regions or require seamless switching between HTTP(S) and SOCKS5 protocols, IPFLY’s residential, ISP, and datacenter proxy infrastructure provides standardized credentials and flexible session routing out of the box.