Block websites from storing cookies and site data in Firefox

Revision Information
  • Revision id: 707
  • Created:
  • Creator: Chris Ilias
  • Comment: use {content label=customhistory}
  • Reviewed: No
  • Ready for localization: Yes
  • Readied for localization by: AnonymousUser
Revision Source
Revision Content

Cookies - Information that websites store on your computer are stored on your computer by websites you visit and contain information such as site​ pref​eren​ces ​or logi​n stat​us. This article describes how to block websites from storing cookies in Firefox.


Block cookies for a single site

To set Firefox to block cookies from one website:

  1. Go to the website you wish to block from setting cookies in Firefox.
  2. At the top of the Firefox windowOn the menu bar, click on the Tools menu, and select Page Info.
  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.

    1f26f07b671e46d7a9ed3df57afb9fb7-1251945943-898-1.png
  6. Close the Page Info window.
  7. Remove any cookies that the website has already set in Firefox. For instructions, 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 then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.

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.
    1. Next to Accept cookies from sites, click Exceptions....
    1. In the Menu bar at the top of the screen, click Firefox and then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.
    2. Select the Privacy panel.
    3. Next to Accept cookies from sites, click Exceptions....

    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 then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.
    2. Select the Privacy panel.
    3. Set Firefox will: to Use custom settings for history.
    4. Remove the check mark from Accept cookies from sites.
    5. Close the Settings page. Any changes you've made will automatically be saved.
    1. In the Menu bar at the top of the screen, click Firefox and then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.
    2. Select the Privacy panel.
    3. Remove the check mark from Accept cookies from sites.
    4. Close the Settings page. Any changes you've made will automatically be saved.

    To remove cookies that were stored previously, see Clear cookies and site data in Firefox.


    Block third party cookies

    To set Firefox to accept cookies only from the website you're currently visiting, see Third-party cookies and Firefox tracking protection.