Block websites from storing cookies and site data in Firefox

No one has helped translate this article yet. If you already know how localizing for SUMO works, start translating now. If you want to learn how to translate articles for SUMO, please start here.

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.

Block cookies for a single website

You can use the Page Info window to set Firefox to block cookies from one website:

  1. Go to the website you wish to block from setting cookies in Firefox.
  2. Right-clickHold down the control key while you click within the page and select View Page Info.In the Menu bar, click Tools and select Page Info from the drop-down menu.
  3. In the Page Info window, select the Permissions panel.
  4. Underneath Set Cookies, remove the check mark from Use Default.
  5. Change the setting to Block.
    Fx78PageInfo-BlockCookies
  6. Close the Page Info window.
  1. Go to the website you wish to block from setting cookies in Firefox.
  2. If the Menu bar is enabled,In the Menu bar, click Tools and select Page Info from the drop-down menu.
    Alternatively, click the padlock Fx70GreyPadlockFx89Padlock to the left of the web page address, click the right arrow > in the Site Information drop-down panel and then click the More Information button in the next panel.
  3. In the Page Info window, select the Permissions panel.
  4. Underneath Set Cookies, remove the check mark from Use Default.
  5. Change the setting to Block.
    Fx78PageInfo-BlockCookies
  6. Close the Page Info window.

You will need to remove any cookies that the website has already set in Firefox. For instructions, see Clear cookies and site 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 from storing cookies and site data, as follows:

  1. In the Menu bar at the top of the screen, click Firefox and select Preferences. Click the menu button Fx57Menu and select OptionsPreferences.Click the menu button Fx89menuButton and select Settings.

  2. Select the Privacy & Security panel and go to the Cookies and Site Data section.
    Fx68CookiesAndSiteDataFx79CookiesAndSiteData
  3. Click Manage Permissions…Manage Exceptions…. The Exceptions - Cookies and Site Data dialog box will open.
    Fx65CookiesAndSiteData-ManagePermissions
  4. Type in the exact address of the site you want to block.
  5. Click Block.
  6. Click Save Changes 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:

  1. In the Menu bar at the top of the screen, click Firefox and select Preferences. Click the menu button Fx57Menu and select OptionsPreferences.Click the menu button Fx89menuButton and select Settings.

  2. Select the Privacy & Security panel and go to the Cookies and Site Data section.
  3. Click Manage Permissions…Manage Exceptions….

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:

  1. In the Menu bar at the top of the screen, click Firefox and select Preferences. Click the menu button Fx57Menu and select OptionsPreferences.Click the menu button Fx89menuButton and select Settings.

  2. Select the Privacy & Security panel.
  3. In the Enhanced Tracking Protection section, select Custom and check mark Cookies.
    Fx78ETPcustom-cookiesFx86ETPcustom-cookies
  4. Use the drop-down menu to choose the type of cookies to block. Warning! Some sites will not work properly with all cookies blocked.
  5. Close the about:preferences page. Any changes you've made will automatically be saved.

For more information about third-party cookies, see Third-party cookies and Firefox tracking protection. To remove cookies that were stored previously, see Clear cookies and site data in Firefox.

Var artikkelen nyttig?

Vent ...

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More