A common issue Firefox users run into is a “Secure Connection Failed” or “The connection was reset” page with the error code “PR_END_OF_FILE_ERROR“, on one website like YouTube or on nearly every site, often while the same pages still load in Chrome or Edge.
The error means the secure connection was cut off before Firefox could finish setting it up, most often by a VPN or something else on your own PC. This guide will help you find what’s behind it and get the websites loading again.
Also see: “SSL_ERROR_RX_RECORD_TOO_LONG” Error in Firefox

What does “PR_END_OF_FILE_ERROR” actually mean?
Every time you open an “https” website, Firefox and the website first go through a quick “handshake” to agree on how to encrypt the connection. This error shows up when the connection ends in the middle of that handshake, so Firefox can’t finish setting up the connection and stops. The page’s heading can read “Secure Connection Failed” or “The connection was reset”, with the same error code under it. Sometimes clicking Try Again loads the page anyway, which makes the error feel random.

PR_END_OF_FILE_ERROR has been around for years. What ends the connection is usually something sitting between Firefox and the website, and a VPN is the most common one. Antivirus or security software that scans encrypted (HTTPS) connections can do it too, and so can a proxy set in Firefox’s or Windows’ settings.
Other times the cause is in Firefox itself. Its DNS over HTTPS setting can get in the way, and so can an extension, an SSL or TLS setting someone changed in about:config, or a damaged profile. The DNS server Windows uses can be behind it too.
A quick test tells you where to look. If Chrome and Edge open the same website fine, the problem is in how Firefox connects, which can still be your VPN or antivirus. If every browser fails, start with what affects the whole PC: the VPN, the proxy and the security software.
Turn off your VPN and try again
VPNs like NordVPN and Proton VPN can trigger this error on certain websites, or even on every site, until the VPN is switched off. Some VPN apps also turn on a “system proxy” in Windows, which causes the same thing.
Disconnect the VPN (and turn off its system proxy option if it has one), then click Try Again on the error page. If the website loads, the VPN or its server is the problem, so try another server. If websites only load with the VPN on, see the DNS over HTTPS fix below.
If only one website fails through one VPN, the problem may be on the VPN provider’s side (Amazon once failed through Proton VPN until Proton fixed it), so contact its support.
Turn off HTTPS scanning in your antivirus
Some antivirus programs check encrypted connections by stepping in between Firefox and the website, which can cut the connection off. Suites like AVG, Avast, Kaspersky, Bitdefender and ESET can do this. Switching that scanning off for a moment tells you whether yours is the cause.
- Open your antivirus program and go to its settings.
- Look for a setting called something like “HTTPS scanning“, “SSL scanning“, “Encrypted connection scanning” or “Web Shield“, and turn it off.
- Reload the website in Firefox.
You can also pause the whole protection for a few minutes instead. Either way, turn it back on after the test, and if the website loaded, add it as an exception in your antivirus. The built-in Windows Security (Microsoft Defender) doesn’t need to be turned off for this.
Change Firefox’s DNS over HTTPS setting
DNS over HTTPS (DoH) sends Firefox’s address lookups through an encrypted service rather than your internet provider’s. Turning it off has fixed this error for a number of people, especially when it happens on every website. It even fixed one case where websites only loaded while a VPN was on.
- Type “about:preferences” in Firefox’s address bar and press Enter.
- Select Privacy and security on the left.
- Scroll down to the DNS over HTTPS section and click Advanced settings.
- Select Off.

Reload the website. If it opens now, you can leave DoH off, or set it back to Default and add only the affected websites under Manage exceptions. If the error happens in every browser, try switching Windows to a public DNS such as Cloudflare’s (1.1.1.1) for a quick test.
Might be useful: Change DNS to Google or Cloudflare in Windows 11/10
Check Firefox’s proxy settings
A proxy you don’t know about, or one that’s set up wrongly, can drop the connection before the handshake finishes.
- In Firefox’s Settings, select Privacy and security, scroll all the way down, and click Advanced settings under “Connection and software security“.
- Under Proxy settings, click Configure proxy.

- In the Connection Settings window, select No proxy and click OK.

Reload the website afterwards. If every browser fails, check Windows’ own proxy settings too, since other browsers (and Firefox’s “Use system proxy settings” option) follow them.
Related guide: How to Disable Proxy Settings in Windows 11/10 Permanently
Clear the website’s cookies and site data
When only one or two websites show the error, clearing what Firefox saved for them lets it start fresh with those sites.
- Open the website that shows the error.
- Click the shield (site information) icon on the left side of the address bar.
- Click “Clear cookies and site data” and confirm with Clear.

Reload the page. If the error comes back after a restart, the cause is something else on this list.
Find the extension that’s causing it
An extension, even something as harmless-looking as a new tab page, can break the connection on certain websites. Troubleshoot Mode starts Firefox with all extensions off for a quick test.
- Click the menu button (three lines) at the top-right of Firefox and go to Help and Report > Troubleshoot Mode….

- Click Restart and confirm if Firefox asks.
- Open the website that showed the error.
If it loads, one of your extensions is the culprit. Restart Firefox normally, open the menu > Extensions and Themes > Extensions, turn them all off, then turn them back on one at a time until the error comes back.
Linked issue: YouTube Not Loading in Firefox While Other Sites Work
Reset SSL and TLS settings you changed in about:config
If you (or a guide you followed) ever changed Firefox’s security settings in about:config, a changed value can stop Firefox from finishing the handshake with some websites. Putting them back to their defaults is safe.
- Type “about:config” in the address bar, press Enter, and click Accept the Risk and Continue.
- Search for “security.ssl“.
- Rows shown in bold have been changed. Click the Reset (arrow) button at the end of each.

- Do the same with a search for “security.tls“.
Then restart Firefox and reload the website. Don’t turn off checks like OCSP stapling to get around this, since that only makes Firefox less secure.
Refresh Firefox or try a new profile
A damaged Firefox profile (where it keeps your settings, extensions and data) is the last thing to check. Refresh Firefox starts a fresh profile and keeps your bookmarks, history, passwords and cookies, but removes your extensions and themes and resets some of your settings.
- Type “about:support” in the address bar and press Enter.
- Click Refresh Firefox… and confirm.

To test without touching your current profile, create a new one from “about:profiles” (Create a New Profile) and open the website in it. If the error comes back after a few minutes even in a brand new profile, the profile isn’t the cause, so go back to the VPN, antivirus and DNS checks above.







