TokenGuard is a composable gateway program for Solana dApps written in Anchor and using CIvic Pass (Overview).
With TokenGuard, dApp developers can protect access to any dApp that accepts tokens as payment, such as a Metaplex CandyMachine mint, without requiring any on-chain smart-contract changes.