Skip to content
Technology

How do spam filters work?

Spam filters work by analyzing incoming emails for signs of junk — suspicious words, links, senders, and patterns — and scoring how likely each is to be spam. Many use machine learning that improves as users mark messages as spam or not.

See it in motion.
Watch a 2-minute animated lesson that shows exactly how spam filters works.
▶ Watch the visual lesson

Step by step

  • 1They scan emails for spam-like features and patterns.
  • 2Each message gets a 'spam likelihood' score.
  • 3Many use machine learning trained on past examples.
  • 4They improve as users flag spam or mark 'not spam'.

Frequently asked questions

How do spam filters work?
They analyze an email's words, links, and sender, score how spammy it looks, and filter out likely junk.
How do spam filters learn?
Machine-learning filters train on huge sets of spam and legitimate mail, improving as users flag messages.
Why does some spam still get through?
Spammers constantly change tactics, so filters must keep adapting and can't catch everything instantly.

Related topics