Gareth Crosskey, 21, gained access to accounts belonging to Selena Gomez, the boyfriend of fellow pop sensation Justin Bieber, in January by pretending to be Selena's stepfather, according to the Daily Mail.
Crosskey also viewed Selena Gomez's personal information stored online and attempted to sell the nuggets to the media, the New York Daily News reported.
On Selena Gomez's Twitter page, Crosskey wrote Oh yeh, JUSTIN BIEBER SUCKS!!!!!!!!!, enraging the 19-year-old entertainer's loyal followers, which number more than 11 million on Twitter.
It took Gomez's handlers about three days to gain control of her online accounts and British and U.S. authorities spent 50,000 pounds investigating the crime, the Daily Mail reported.
Crosskey, a former McDonald's employee, posted the same message on Selena Gomez's Facebook page.
Crosskey apologized for his behavior and enrolled in a college course designing computer games, according to his attorney, Gareth Morgan.
He accepts his actions have caused distress and alarm and he accepts that his actions were stupid, Morgan said of Crosskey, as reported by The Sun.
The 21-year-old also read private messages between Justin Bieber and Selena Gomez and told Selena's stepfather he hacked into four of his stepdaughter's email accounts, according to the Daily Mail.
Crosskey pleaded guilty last week to the UK's Computer Misuse Act and was subsequently jailed for 12 months, according to the Associated Press.
Southwark Crown Court Judge John Price admonished Crosskey for his behavior.
You are clever with a computer and you hacked into the private part of somebody's Facebook account -- that somebody was a singer, a celebrity called Selena Gomez, the judge told Crosskey, according to the Daily Mail. People deserve privacy and should not [have] their private correspondence by email made public. People are entitles [sic] to privacy, even those who seek publicity.
The romance between Bieber and Gomez is one of the most talked about celebrity relationships, as both singers have loyal fan bases.
Their relationship raised eyebrows in February 2011 during the Vanity Fair Oscar party, when Bieber and Gomez attended as a couple.


![Helen Mirren: Dying Boy, Oliver Burton, Gets His Last Wish Thanks To Actress Dressed As Queen Elizabeth [PHOTOS] Helen Mirren: Dying Boy, Oliver Burton, Gets His Last Wish Thanks To Actress Dressed As Queen Elizabeth [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2013/05/22/helen-mirren-visits-dying-boy_1.jpg)


![Oklahoma Tornado 2013: Photos And Footage Of The Twister's Devastation [PICTURES, VIDEO] Oklahoma Tornado 2013: Photos And Footage Of The Twister's Devastation [PICTURES, VIDEO]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_multimedia/public/2013/05/20/oklahoma-tornado_1.png)

![Billboard Music Awards 2013: All The Fashion On The Billboards Red (Er, Blue) Carpet [PHOTOS] Billboard Music Awards 2013: All The Fashion On The Billboards Red (Er, Blue) Carpet [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_medium/public/2013/05/20/keha-givenchy.jpg)














![5 Incredible Future Campuses For The World's Tech Giants [PHOTOS] 5 Incredible Future Campuses For The World's Tech Giants [PHOTOS]](http://s1.ibtimes.com/sites/www.ibtimes.com/files/styles/v2_small/public/2013/05/22/amazons-biodome_0.jpg)






Like or Follow us for updates on the biggest stories!