Content filtering refers to the process by which email service providers (ESPs) analyze the content of emails to determine if they are spam, promotional, or legitimate. This is achieved by using algorithms and machine learning models to assess various elements such as keywords, links, formatting, and attachments. The aim is to protect users from unwanted and potentially harmful emails.