(CNN) -- A New Zealand court denied bail Wednesday to the founder of the shuttered file-sharing site Megaupload, whose extradition is being sought by the U.S. Department of Justice. 

Kim Dotcom, who is also known as Kim Schmitz, will remain in custody until at least February 22, when an extradition hearing is to be held, the court said. 

U.S. authorities shut down Megaupload last week and announced indictments against Dotcom and six other people connected to the site, accusing them of operating an "international organized criminal enterprise responsible for massive worldwide online piracy of copyrighted works." 

Four of those charged, including Dotcom, were arrested in New Zealand at the request of the U.S. government. The New Zealand police detained Dotcom, a German citizen, on Friday after a raid on his mansion in the North Shore area of Auckland, the country's largest city. 

In a packed court on Monday, Dotcom's lawyer, Paul Davison, said that his client is innocent and should be granted bail. 

"Mr. Dotcom emphatically denies any criminal misconduct or wrongdoing and denies the existence of any 'mega-conspiracy,'" Davison told the court. 

But New Zealand government prosecutors, acting on behalf of U.S. authorities, argued that Dotcom's bail request should be denied because he presented an "extreme" flight risk. Dotcom is a resident of New Zealand and Hong Kong. 

Users of Megaupload -- ranked by the traffic-tracking service Alexa as the world's 72nd-most-visited website before it was taken down -- could share and download files, many of which were copyrighted works made available for download without permission, according to U.S. authorities. 
How many people were indicted besides her?
 announced indictments against Dotcom and six other people connected to the site