Instagram said Tuesday it was expanding its online anti-bullying initiative, adding a new filter to weed out comments meant to harass or bully the 800 million users of the popular social media site.

The company said it would review accounts that have a large number of comments filtered out. If those accounts violate Instagram’s community guidelines, it will take action, which could include banning them. The new filter will also hide comments attacking a person’s appearance or character, and alert Instagram to repeat offenders.

It is the second step in an initiative announced last year to curb offensive comments and rid Instagram of its most malicious members.

“To be clear, we don’t tolerate bullying on Instagram,” Kevin Systrom, the company’s chief executive and co-founder, told Instagram users in a blog post Tuesday. The company will also expand policies to guard against the bullying of young public figures who are often the target of hate-filled messages.