Clipboard Manager Ignore Rules on Mac: Keep Secrets Out of Your History

A clipboard manager with ignore rules lets you decide what never gets saved: by source app, by clipboard data type, or by text pattern. In Maccy, you configure all three under Settings → Ignore, so passwords, one-time codes and API keys stay out of your history while everything else is still recorded.

Quick Answer

  • Ignore by app: block everything copied from a password manager, banking app or terminal.
  • Ignore by pasteboard type: skip anything an app marks as concealed or transient. Well-behaved apps do this automatically.
  • Ignore by regex: catch what slips through, such as 6-digit codes, API keys and card numbers.
  • Use all three together. Each layer covers a gap the others leave open.

Why does a clipboard manager need ignore rules at all?

The macOS clipboard holds one item, so a password you copy is overwritten by the next thing you copy. A clipboard manager changes that. It keeps a searchable history, which is the point, but it also writes a copy of every secret you touch into a database on disk.

That is not a flaw to be embarrassed about. It is a trade-off that every clipboard manager makes, and ignore rules are how you manage it. Think of the history as a notebook that follows you around and decide what goes in it.

The usual suspects:

  • Passwords and passkeys copied from a password manager
  • Two-factor codes pasted from Messages or an authenticator
  • API keys, access tokens and .env values copied from a terminal or editor
  • Card numbers, IBANs and other financial details
  • Private messages and client data you would rather not search up later

What kinds of ignore rules exist?

Clipboard managers filter in one of three ways. Knowing the difference tells you which layer to reach for first.

Rule typeWhat it matchesBest forWeak spot
ApplicationThe app that wrote to the clipboardPassword managers, banking apps, a specific terminalBlunt: it blocks everything from that app, including harmless copies
Pasteboard typeMetadata flags on the copied data (for example « concealed »)Automatic protection with zero maintenanceOnly works if the source app sets the flag
Regular expressionThe content of the copied textOTP codes, keys, card numbers copied from anywherePattern-based, so it can miss odd formats or over-match

How do I set up ignore rules in Maccy?

Maccy app is a free, open-source, local-first clipboard manager for macOS. Its history never leaves your Mac, which is why ignore rules matter for what is stored locally rather than what is sent anywhere. Open the menu bar icon, then Settings → Ignore (on older versions, Preferences → Ignore).

Layer 1: Ignore specific applications

  1. Open Settings → Ignore in Maccy.
  2. In the applications list, click + and choose the app from /Applications.
  3. Repeat for each app you never want recorded.

Good first candidates are your password manager, your banking or finance app, and any app where you routinely handle credentials. One nuance: this is an allow-or-deny switch for the whole app. If you ignore your terminal, you lose useful commands from history too. For terminals and editors, the regex layer is usually a better fit.

Layer 2: Ignore pasteboard types

macOS pasteboards carry type identifiers alongside the copied data. A community convention documented at nspasteboard.org lets apps flag clipboard content as concealed, transient or auto-generated, signalling to clipboard managers that it should not be stored. Many password managers set the concealed flag when you copy a password.

Maccy mac ships with a default list of pasteboard types it ignores, which includes the common concealed and transient markers. You can inspect and extend that list in the same Ignore tab. In practice this is your best protection because it needs no maintenance, but it depends entirely on the source app doing its part. Test it (see below) instead of assuming.

Layer 3: Ignore by regular expression

The regex list is the safety net. Add a pattern and any copied text that matches it is skipped. Anchoring matters: ^ and $ make the pattern match the whole copied string, which keeps you from accidentally ignoring long documents that merely contain a number.

What to catchExample patternNotes
6-digit one-time codes^\d{6}$Also matches any bare 6-digit number, such as a postcode in some countries. Accept the trade-off.
AWS access key IDs^AKIA[0-9A-Z]{16}$Matches the standard long-term key ID format.
Stripe-style secret keys^sk_(live|test)_[A-Za-z0-9]+$Adapt the prefix to the services you use.
JSON Web Tokens^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$JWTs start with a base64-encoded header, which usually begins eyJ.
Payment card numbers^(?:\d[ -]?){13,19}$Broad by design. It will also catch long numeric IDs.
GitHub personal access tokens^gh[pousr]_[A-Za-z0-9]{36,}$Covers the common ghp_-style prefixes.

Keep your pattern list short and deliberate. Every regex runs against everything you copy, and an over-eager pattern is worse than none because it silently drops items you wanted.

Which rule should I use for which situation?

SituationReach forWhy
You use a password manager dailyApp rule + pasteboard type defaultsBelt and braces: the type flag usually works, the app rule guarantees it
SMS or email verification codesRegexThey come from Messages or a browser, which you do not want to ignore wholesale
Developer pasting tokensRegex per serviceTerminals and editors also produce history you want to keep
Occasional one-off sensitive copyPause or clear historyNo permanent rule needed for a single event

How do I check that my rules actually work?

Do not trust a privacy setting you have not tested. A two-minute check:

  1. Copy a fake value that matches each regex you added, for example 123456 for the OTP pattern.
  2. Open Maccy’s history and confirm it did not appear.
  3. Copy a normal sentence and confirm it did appear. This catches over-matching.
  4. Copy a throwaway entry from your password manager and check the history. If it appears, add the app rule.

What if something sensitive already got saved?

Ignore rules are forward-looking. They do not remove what was captured before you set them up. Delete individual items from Maccy clipboard‘s history, or clear the whole history, then configure your rules. Also be aware that anything stored by a clipboard manager on disk can be included in backups such as Time Machine, so cleaning up matters beyond the app itself.

Are ignore rules a complete privacy solution?

No, and it is worth being honest about the limits.

  • Patterns cannot recognise a password. A random string like kT9#vLq2 has no pattern. For passwords you depend on the app rule or the concealed flag.
  • Source apps decide whether they flag secrets. If a tool does not mark its output as concealed, the type-based layer cannot help.
  • Other software can read the clipboard too. Recent macOS releases have started prompting when apps read the pasteboard programmatically. Ignore rules only control what your clipboard manager stores.

The practical takeaway: treat ignore rules as one control among several, alongside a good password manager and sensible habits such as using autofill instead of copy and paste where you can.

How does this compare with other Mac clipboard managers?

Most mature clipboard managers offer some form of app exclusion. Beyond that the picture varies, and I would rather you check than take a generalisation from me.

ToolApp exclusionPasteboard-type filteringRegex filtering
MaccyYesYesYes
Paste
Raycast clipboard history
Alfred clipboard history

If regex-level control matters to you, confirm it in the tool’s own documentation before you commit. That is also the advantage of an open-source tool: you can read exactly what it does with your clipboard.

FAQ

Does Maccy save passwords I copy from my password manager?

Usually not, because most password managers flag copied passwords as concealed and Maccy ignores those types by default. To be certain, also add your password manager under Settings → Ignore and test it.

Can I ignore only some text instead of a whole app?

Yes. Use a regular expression. Regex rules match the copied content, so they filter by what you copied rather than where you copied it from.

Do ignore rules delete my existing clipboard history?

No. They apply to new copies only. Clear or edit existing history separately.

Is clipboard history stored in the cloud?

Maccy is local-first, so history stays on your Mac.

The short version

Set an app rule for your password manager, leave the pasteboard-type defaults on, and add a small handful of regex patterns for the secrets you actually handle. Then test each layer. That is about ten minutes of work for a clipboard history you can use without wondering what is in it.

Maccy is free and open source, so you can try this setup without commitment. Download Maccy and open Settings → Ignore. What is the one thing you copy most often that you would least like to find in a searchable history?

If you want to try it yourself, maccy.at is a free, open-source clipboard manager for macOS — the clipboard history guide covers the rest.

Panier
Retour en haut