A controversial professor who claims Peking University has "too many perverts" was banned from leaving China by a Beijing court on Wednesday.

Haidian district court rebuffed former Peking University Professor Zou Hengfu's appeal against a ruling confining him to the country while in the middle of a defamation lawsuit involving the university and a nearby restaurant.

Zou posted the "perverts" accusation on his Sina Weibo in August 2012, saying faculty members including deans and college directors had engaged in sexual relationships with waitresses near campus.

An internal investigation found no scandal, prompting the university and restaurant to sue Zou for defamation.

He had no regrets, Zou told the Beijing Morning Post on Wednesday, even after finding out the university had applied for a court order preventing him leaving China. He was proud his "revelation" had attracted attention and would "fight on with a majority of the Net users behind me," he said.

Zou, who now teaches economics at the Central University of Finance and Economics in Beijing, wrote on his Weibo he had already hired a lawyer to defend him in court next year.

Zou will appear in court on January 15 to exchange evidence, the Beijing Evening News reported on Thursday.

Haidian district court confined Zou after failing to contact him, according to its official website.