A South Korean court on Thursday sentenced the leader of an online sexual blackmail ring to 40 years in prison, the Yonhap news agency reported.