MIAMI -

A federal judge sentenced Joaquin Serrapio to three years probation and four months house arrest on Wednesday after he pled guilty to posting death threats online against President Obama.

The 21-year-old was arrested in February after he wrote on his Facebook page that he wanted to put a bullet in the President's head and asked if anyone wanted to help kill him.

The President was delivering a speech at the University of Miami at the time.

U.S. District Judge Marcia Cooke sought to make an example of Serrapio, saying, "I'm not going to lie to you. When you said what you did was something stupid, you hit the jackpot."

Serrapio will have to wear an ankle-monitoring bracelet while under house arrest and will have to perform 250 community service hours.

He will be allowed to use the internet so long as he writes on his Facebook page that "The unthinking use of words in cyberspace have consequences on your life."