John Borell of Toledo pleaded guilty to computer fraud in April and agreed to pay $227,000 in damages to computer servers that had to be repaired or beefed up for security.
In early 2012, Borell attacked a server for Utahchiefs.org, a website for Syracuse, N.Y., police, the municipal website of Springfield, Mo., and a site for the Los Angeles County Police Canine Association, according to a signed plea deal.
FBI officials have said citizen complaints about drugs and other crimes were accessed along with personal data of informants and police officers.
Damage he caused put the website of Salt Lake City police out of operation for four months while a more secure site was launched.
A newlywed, Borell was given until Dec. 6 to surrender at a federal prison near his family's home in Toledo.
Authorities have said Borell was tied to Anonymous, a loosely organized group of pranksters and activists that has targeted organizations such as MasterCard and the Church of Scientology.
During sentencing in U.S. District Court in Salt Lake City, Borell -- dressed in a suit with a pink shirt -- told Judge Robert J. Shelby that his marriage was going well and his wife was providing personal support. He said little else.
The judge touched on a history of Borell's personal problems that apparently were a factor in the hackings. The defendant was ordered to accept mental health treatment and stay away from drugs. None of these issues, however, were fully explained in open court.
Outside court, Borell refused to answer any questions about his motives. He will spend three years on supervised release after prison.
"We don't want to see you in court again," Shelby said.
The U.S. Bureau of Prisons will make the final decision on where Borell serves his sentence after he turns himself in. The judge recommended a prison in Michigan near his family home.
MORE HBJ HEADLINES
Cold coffee is booming in US; now everyone is piling in Is Lego stuck in an arms race to make childrenís play more violent? Haggen switches to sell only sustainable seafood Democrats say Supreme Court vacancy hurts small business Blueberry workers in Walla Walla County win back pay Canadaís oil-sands producers to re-enter wildfire sites