An infamous website mogul known as the "Revenge Porn King" pleaded guilty last Wednesday to hacking and identity theft for posting stolen naked photos on his website.

Hunter Moore's plea means he could spend two to seven years in the slammer upon sentencing, the New York Daily News reported.

Moore, of California, allegedly rose to sleazy fame by running a website where ex-lovers could send naked photos and videos of former partners for the ultimate revenge.

The website, IsAnyoneUp, also linked the explicit photos to their subject's social media accounts, according to the Daily News. Meanwhile, the 28-year-old was shutting his critics down by telling them to be more careful online.

"People think I'm completely evil and what I'm doing is completely immoral, but at the end of the day I feel like I'm just educating people on technology," Moore told the BBC in 2012.

But the 'king's' reign came to an end in January of last year when he paid a hacker named Charles Evens to break into victims' Gmail and Yahoo email accounts to steal nude pics, which he published on his website.

Evans, accused of hacking hundreds of email accounts but only charged with 15 counts, is slated for trial in March, NBC News reported.

As part of his plea deal, Moore will have to spend up to three years on probation after his release and pay a $500,000 fine, or twice his earnings if it's greater, according to the Daily News.

He will also have to notify his probation officer every time he logs onto the Internet.

IsAnyoneUp was purchased by an anti-bullying site in 2012 and later shut down.