SAN FRANCISCO — Presidents and other world leaders and political figures who use Twitter to threaten or abuse others could find their tweets slapped with warning labels.

The new policy , announced by the company on Thursday, comes amid complaints from activists and others that President Donald Trump has gotten a free pass from Twitter to post hateful messages and attack his enemies in ways they say could lead to violence.

From now on, a tweet that Twitter deems to involve matters of public interest, but which violates the service's rules, will be obscured by a warning explaining the violation.

Users will have to tap through the warning to see the underlying message, but the tweet won't be removed, as Twitter might do with a regular person's posts.

Twitter said the policy applies to all government officials, candidates and similar public figures with more than 100,000 followers. In addition to applying the label, Twitter won't use its algorithms to "elevate" or otherwise promote such tweets.

"It's a step in the right direction," said Keegan Hankes, research analyst for the Southern Poverty Law Center's Intelligence Project, who focuses on far-right extremist propaganda online. But, he added, Twitter is essentially arguing "that hate speech can be in the public interest. I am arguing that hate speech is never in the public interest."

Twitter refused to comment on whether any of Trump's past tweets violated its rules and would not say what role, if any, his Twitter activity played in the creation of the new warning-label policy.

The new stance could fuel additional Trumpian ire toward social media. The president routinely complains, without evidence, that social media sites are biased against him and other conservatives.

Twitter's rules prohibit threatening violence against a person or group, engaging in "targeted harassment of someone," or inciting others to do so, such as wishing a person is harmed. It also bans hate speech against a group based on race, ethnicity, gender or other categories.

RELATED: YouTube updates hate speech guidelines to prohibit videos

RELATED: Trump meets with Twitter CEO amid bias complaints

Up to now, the company has exempted prominent leaders from many of those rules, contending that publishing controversial tweets from politicians helps hold them accountable and encourages discussion.

But there have been longstanding calls to remove Trump from the service over what some have called abusive and threatening behavior.

Some activists complained this week after the president threatened Iran with "obliteration" in some areas if it attacks the U.S. Trump has also tweeted a video of himself beating up a man with a CNN logo in place of his head and retweeted seemingly faked anti-Muslim videos.

"Donald Trump has changed political discourse on Twitter and everywhere else, given the level of toxic statements he has made about vulnerable communities in America," Hankes said.

Other politicians could likewise become subject to warning labels.

In 2018, French prosecutors filed preliminary charges against far-right French politician Marine Le Pen for tweeting brutal images of Islamic State violence. Twtter prohibits material that is "excessively gory."

And in March, Brazilian President Jair Bolsonaro stirred outrage by sharing a video on Twitter of a man urinating on the head of another man during a Carnival party.

Insults and mockery fall into a gray area. Calling someone a "lowlife, a "dog" or a "stone cold LOSER," as Trump has done, may not in itself be a violation. But repeated insults against someone might amount to prohibited harassment.

Jennifer Grygiel, a social media expert and professor at Syracuse University, said Twitter "obviously" enacted the new policy because of Trump's Twitter activity.

But Grygiel said the new rule doesn't go far enough. Because of the president's outsize ability to start wars, move stock markets or influence other world events, Twitter should instead review leaders' tweets before they are sent out and block them if necessary, Grygiel said.

Twitter's new policy doesn't apply to past tweets.

Twitter said it is still possible for a government official or other figure to tweet something so egregious that it warrants removal. A direct threat of violence against an individual, for instance, would qualify.

The company said warning-label decisions will be made by a group that includes members of its trust and safety, legal and public policy teams, as well as employees in the regions where particular tweets originate.

___

AP Technology Writer Mae Anderson in New York contributed to this report.