Shu et al. showed that clustered regularly interspaced short palindromic repeat (CRISPR)-repressed toxins defend CRISPR–Cas against various anti-CRISPR (Acr) proteins or RNAs by inducing abortive infection and identified new Acr proteins AcrIF25 and AcrIF26 with distinct mechanisms by harnessing these toxins as a screening system.