How can I remove a website accidentally added to Firefox's list of HSTS sites?

Solution 1:

Clear all browsing data from Firefox.

Ctrl+Shift+Del shortcut for Windows, or Firefox button -> History -> Clear recent history.

Solution 2:

I found additional HSTS data that was not deleted via "Forget About This Site" or clearing the browser cache in a file SiteSecurityServiceState.txt in my profile directory.

It is a text file you can open with any text editor and remove lines of HSTS data about a speficic host. Or clear the whole file.

Solution 3:

For the sole reason that I just had the same issue (and not because I really like resurrecting old questions!), you can also open the History browser, find an entry for the site in question, right-click the and select Forget About This Site.

This will remove your history entries for that site only (including the HSTS setting), without affecting your other history settings.

You need to close all tabs for the site that you wish to forget first, otherwise the tab itself seems to remember.

(At least, it did for me, on FF26/Win32...)

Solution 4:

If you want to forget HSTS for a Web site in Firefox without loosing all browsing data you can edit permissions.sqlite with e.g. https://github.com/sqlitebrowser/sqlitebrowser/releases, filter permissions.sqlite for "sts/subd".

Solution 5:

On Firefox :

  1. Go to about:config
  2. Search for extensions.xpiState and note your profile directory name.
  3. Quit Firefox
  4. Go that directory and look for the file SiteSecurityServiceState.txt
  5. Edit the file and delete the line corresponding to the domain which is making trouble

On Chrome :

  1. Go to chrome://net-internals/#hsts
  2. At Delete domain , insert the domain name and click on Delete