Martin Shkreli, previously convicted of defrauding hedge fund investors, was ordered behind bars Wednesday afternoon after a federal judge declared him a danger to the community.

>> Read more trending news

Shkreli's online antics reached a boiling point when he offered his Facebook followers $5,000 to grab a strand of Hillary Clinton's hair during her current book tour.

That remark led U.S. District Judge Kiyo Matsumoto to revoke his bond and order him jailed.

“This is a solicitation of assault. That is not protected by the First Amendment,” Matsumoto said at an hour-long hearing.

Shkreli will now remain jailed until he is sentenced later this year.