Four British men associated with the LulzSec hacker collective received prison sentences Thursday for their roles in cyberattacks launched by the group against corporate and government websites in 2011.

Davis, who was known online as "Topiary," received a two-year prison sentence. He acted as a spokesperson for LulzSec, writing some of the hacker group's announcements and managing its website and Twitter account.

Ackroyd, who posed as a 16-year-old girl online and used the alias "Kayla," received a 30-month prison sentence, while Mustafa al-Bassam, who used the online alias "T-Flow," received a 20-month suspended prison sentence and was ordered to perform 200 hours of unpaid community work.

Cleary, who used the online alias "Viral," received a 32-month prison sentence. He was not one of the LulzSec core members, but was associated with the group and operated a botnet that was used to launch DDoS (distributed denial-of-service) attacks against LulzSec's targets.

LulzSec's members went on a hacking spree between May and June 2011, targeting various companies and government agencies. They used hacking methods and tools to break into websites and leak the information found in their databases, including the personal details of thousands of users, and also launched DDoS attacks to make websites inaccessible.

Some of LulzSec's targets included Sony, Nintendo, News Corp., Bethesda Game Studios, the CIA, the FBI, the Arizona State Police and the U.K.'s Serious Organised Crime Agency (SOCA).

Andrew Hadik, a lawyer with the Crown Prosecution Service (CPS) in the U.K., characterized the actions of LulzSec's members as "cowardly and vindictive."

"The harm they caused was foreseeable, extensive and intended," Hadik said in a statement published on the CPS blog. "Indeed, they boasted of ÿhow clever they were with a complete disregard for the impact their actions had on real people's lives."

Companies suffered financial losses and serious damage to their reputations, while hundreds of thousands of innocent individuals had their private details exposed as a result of the group's actions, he said.

Another LulzSec member named Cody Andrew Kretsinger, from Decatur, Illinois, who used the online alias "recursion," was sentenced in April to one year in federal prison for his role in LulzSec's attack against Sony Pictures.

Hector Xavier Monsegur, the former leader of LulzSec, known online as "Sabu," was arrested in June 2011 and agreed to act as an informant for the FBI. Monsegur pleaded guilty to multiple hacking offenses in relation to the group's activity and is scheduled to be sentenced in August.