The owner of a now-offline "revenge porn" website based in California was sentenced Friday to 18 years in prison, the San Diego office of the state's attorney general said.