Block websites from storing site preferences or login status in Firefox

Cookies and other site data is stored on your computer by websites you visit. The stored data contains information such as site preferences and login status. This article describes how to block websites from storing this data in Firefox.

Block cookies for more than one website

If you have more than one website you want to block, using the Page Info window for each site can be time-consuming. You can block individual websites by entering their address into your Firefox OptionsPreferencesExceptions list for cookies and site data, as follows:

Click the menu button and choose Options.Preferences.

Select the Privacy & Security panel and go to the Cookies and Site Data section.

Next to Accept cookies and site data from websites (recommended)Accept cookies and site data click Exceptions…. The Exceptions - Cookies and Site Data dialog box will open.

Type in the exact address of the site you want to block.

Click Block.

Click Save Changes to finish.

Click the menu button and choose Options.Preferences.

Select the Privacy & Security panel and go to the History section.

In the drop-down menu next to Firefox will, choose Use custom settings for history.

Next to Accept cookies from sitesAccept cookies from websites, click Exceptions…. The Exceptions - Cookies dialog box will open.

Viewing a list of blocked sites

Select the PrivacyPrivacy & Security panel and go to the History section.

In the drop-down menu next to Firefox will:Firefox will choose Use custom settings for history.

Next to Accept cookies from sitesAccept cookies from websites, click Exceptions….

Click the menu button and choose Options.Preferences.

Select the Privacy & Security panel and go to the Cookies and Site Data section.

Next to Accept cookies and site data from websites (recommended)Accept cookies and site data click Exceptions….

Block cookies for all sites

To set Firefox to block cookies from all websites:

Click the menu button and choose Options.Preferences.

Select the PrivacyPrivacy & Security panel and go to the History section.

In the drop-down menu next to Firefox will:Firefox will choose Use custom settings for history.

Remove the check mark from Accept cookies from sitesAccept cookies from websites.

Close the about:preferences page. Any changes you've made will automatically be saved.

Click the menu button and choose Options.Preferences.

Select the Privacy & Security panel and go to the Cookies and Site Data section.

Select Block cookies and site data (may cause websites to break)Block cookies and site data and then use the drop-down menu next to Type blocked to choose the type of cookies to block. The options are listed in order from least restrictive to most restrictive. Some sites will not work properly with all cookies blocked.

Close the about:preferences page. Any changes you've made will automatically be saved.