Websites you visit store cookies and other site data on your computer. 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.
- See Where are my logins stored? to learn more about website logins.
Table of Contents
Block cookies or persistent storage for a single website
You can use the Page Info window to set Firefox to block cookies or stored data from one website:
- Go to the website you wish to block from setting cookies or storing site data in Firefox.
- If the Menu bar is enabled,In the Menu bar, click and select from the drop-down menu.
Alternatively, click the padlock to the left of the web page address, click the right arrow > in the Site Information drop-down panel and then click the button in the next panel. - In the Page Info window, select the panel.
- Underneath Set Cookies or underneath Store Data in Persistent Storage, remove the check mark from Use Default.
- Change the setting to Block.
- Close the Page Info window.
You will need to remove any cookies or site data that the website has already set in Firefox. For instructions, see Clear cookies and site data in Firefox.
Block cookies and site data 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 from setting cookies and storing site data, as follows:
- In the Menu bar at the top of the screen, click and then select or , depending on your macOS version.Click the menu button and select .
- Select the
- Click
- Type in the exact address of the site you want to block.
- Click .
- Click to finish.
To remove cookies that were stored previously, see Clear cookies and site data in Firefox.
Viewing a list of blocked sites
To see a list of sites that you have blocked from setting cookies and storing site data:
- In the Menu bar at the top of the screen, click and then select or , depending on your macOS version.Click the menu button and select .
- Select the panel and go to the Cookies and Site Data section.
- Click
The Exceptions - Cookies and Site Data dialog box that opens will show you which sites you have blocked from storing cookies.
Block cookies for all sites
To set Firefox to block cookies from all websites:
- In the Menu bar at the top of the screen, click and then select or , depending on your macOS version.Click the menu button and select .
- Select the panel.
- In the Enhanced Tracking Protection section, select Custom and check mark Cookies.
- Use the drop-down menu to choose the type of cookies to block. Warning! Some sites will not work properly with all cookies blocked.
- Close the page. Any changes you've made will automatically be saved.