China said on Friday it would not stand for violations of its territorial waters in the name of freedom of navigation, as the United States considers sailing warships close to China's artificial islands in the South China Sea.

"We will never allow any country to violate China's territorial waters and airspace … in the name of protecting freedom of navigation and overflight," Foreign Ministry spokeswoman Hua Chunying told a regular news briefing.

RELATED: Hackers in China, South Korea and Germany targeted Clinton's server: Report

A U.S. defense official said the United States was mulling sending ships within the next two weeks to waters inside the 12-nautical-mile zones that China claims as territory around islands it has built in the Spratly chain.

China claims most of the South China Sea, though Washington has signaled it does not recognize Beijing's territorial claims and that the U.S. navy will continue to operate wherever international law allows.

RELATED: China's army changes tactics to prepare for war on a new battlefield

"We urge the related parties not to take any provocative actions, and genuinely take a responsible stance on regional peace and stability," Hua said in response to a question about possible U.S. patrols.

The United States and its allies in Asia, including Japan, have called on Beijing to halt construction on its man-made islands and the issue is central to increasingly tense U.S.-China relations. Chinese President Xi Jinping has said China has no intention of militarizing the islands, but Washington analysts and U.S. officials say Beijing has already begun creating military facilities there.