Safari extension · iPhone, iPad & Mac
Reject cookie popups and auto-delete cookies in Safari
Cookie DNT clicks "Reject" on cookie popups for you. When you close a site's tab, it deletes that site's cookies and stored data. You choose which sites, so you stay logged in everywhere else.
One-time purchase. No account, no tracking.
What Cookie DNT does
Rejects cookie popups for you
When a site asks you to accept cookies, Cookie DNT picks "Reject". If there's no reject option, the popup is hidden. Pause it for any site.
Deletes cookies when you close a tab
A site's cookies and data are deleted once none of your tabs are on it. Or set a timer, from seconds to hours.
You pick which sites get cleaned
Turn deletion on site by site, so you stay logged in elsewhere. Or auto-delete everywhere except an allow list - wildcards like *.example.com work.
Clears more than cookies
Also removes localStorage, sessionStorage and IndexedDB, the other places sites keep data about you.
No tracking
Cookie DNT doesn't track your browsing. Your site lists stay on your devices and your iCloud.
iPhone, iPad and Mac
Your site lists sync with iCloud, so every device deletes the same cookies.
Why not just use Safari's settings?
Safari can clear all your cookies, or block them all. It can't delete one site's cookies when you leave it. That's the gap Cookie DNT fills.
| Clear History | Private Browsing | Block All Cookies | Cookie DNT | |
|---|---|---|---|---|
| Deletes cookies automatically | No | Yes | - | Yes |
| Keeps the logins you want | No | No | No | Yes |
| Choose sites one by one | No | No | No | Yes |
| Sites still work normally | Yes | Yes | Often break | Yes |
| Rejects cookie popups | No | No | No | Yes |
Cookie DNT doesn't block ads or trackers. Pair it with a content blocker if you want that.
Guides
How to auto-delete cookies in Safari when you close a tab
Safari has no "delete cookies on close" setting. Here are the three workarounds on iPhone, iPad and Mac, and which one keeps you logged in.
How to clear cookies on iPhone and iPad (Safari)
Clear all Safari cookies, or only one site's, on iPhone and iPad - with the exact menu paths for iOS 18 and later and for older versions.
How to clear cookies in Safari on Mac
Remove all cookies, or only one website's, in Safari on macOS - and how to make Safari forget chosen sites automatically.
Cookie AutoDelete for Safari? The closest alternative
Cookie AutoDelete isn't available for Safari. Here's how to get the same per-site, delete-on-close behaviour on iPhone, iPad and Mac.
How to delete cookies for one site in Safari
Remove a single website's cookies in Safari on iPhone, iPad and Mac without logging out of everything else.
How to stop cookie popups in Safari automatically
Cookie consent popups on iPhone, iPad and Mac - what Safari can do, what extensions do, and the difference between hiding and rejecting.
Questions
Does Safari delete cookies automatically?
Safari limits some tracking cookies, but it has no setting to delete a site's cookies when you close its tab or after a set time. Clearing history removes everything at once, including the logins you want to keep. Cookie DNT deletes cookies automatically, only for the sites you choose.
How do I delete cookies for one site in Safari?
By hand, on iPhone and iPad go to Settings > Apps > Safari > Advanced > Website Data (Settings > Safari on iOS 17 and earlier); on Mac go to Safari > Settings > Privacy > Manage Website Data. Cookie DNT does this for you every time you leave the site.
Is there a Cookie AutoDelete for Safari?
Cookie AutoDelete is a Chrome and Firefox extension and isn't available for Safari. Cookie DNT works the same way in Safari - it deletes a site's cookies after you close its tab, and keeps the sites on your allow list.
Does Cookie DNT block cookie banners?
Yes. Since version 2.12, Cookie DNT rejects cookie consent popups for you - it clicks the site's own "Reject" button, or hides the popup when there is none. It works on thousands of sites that use common consent tools, though not every site. If a site misbehaves, pause it for that site from the extension menu. It uses DuckDuckGo's open-source autoconsent rules (MPL-2.0).
Does Cookie DNT block ads?
No. Cookie DNT rejects cookie popups and deletes cookies and site data. It doesn't block ads, trackers or network requests.
Will I get logged out of sites?
Only on sites you turn cleaning on for. Leave your bank, email and other logins off the list (or on the allow list in Block All mode) and they stay signed in.