China is planning to tighten restrictions for , but the government won't ban them from trading abroad altogether.

The securities regulator proposed late Friday that any firm that wants to go public in another country has to register with the agency first, and then meet a set of requirements set forth by government officials.

"Domestic enterprises issuing and listing overseas shall strictly abide by laws, regulations and relevant provisions on national security such as foreign investment, cybersecurity and data security, and earnestly fulfill the obligations of national security protection," the China Securities Regulatory Commission said in its proposal.

It made clear that companies may be blocked from holding foreign initial public offerings if authorities deem them threats to national security, and added that companies may be required to divest some assets "to eliminate or avoid the impact of overseas issuance and listing on national security."

The draft rules, which are open for public feedback until late January, come after weeks of speculation about when and how Beijing might tighten its scrutiny over IPOs.

Washington has also enacted audit rules that could affect Chinese firms, a sign of continuing tensions between the United States and China.

Earlier this month, the reported that the country was expected to "tightly restrict" the ability for companies that use a structure called a , to raise money from foreign investors.

A VIE involves creating an overseas holding company that allows investors to own a stake in a Chinese company that would otherwise be difficult because of restrictions in the mainland.

Companies like Chinese ride-hailing giant Didi and e-commerce and tech firms Alibaba, Pinduoduo and JD.com have all benefited from the system.

The draft rules do not mention VIEs. But a spokesperson for the regulator said in published remarks Friday that firms using that kind of structure would still be allowed to list overseas, so long as they comply with the government rules and register with the regulator.

Even if Beijing is not closing the door on overseas listings entirely, the government has taken several steps this year that seem intended to discourage Chinese companies from trading in foreign markets, which the country fears could pose risks to national security.

Didi became a poster child of Beijing's tech crackdown earlier this year, when the government just days after its June IPO on the New York Stock Exchange.

Authorities at the time accused Didi of breaking privacy laws and posing cybersecurity risks. Their actions were also widely seen as punishment for the company's decision to go public overseas instead of in China.

In the weeks after the IPO, Beijing proposed that companies with data on more than 1 million users seek approval before listing overseas.

The pressure isn't just coming from Beijing. Earlier this month, the U.S. Securities and Exchange Commission finalized rules that would allow it to delist foreign firms that refuse to open their books to U.S. regulators.

China has for years rejected U.S. audits of its firms, citing national security concerns.

The uncertainty appears to be weighing on some firms.

Earlier this month, Didi from the New York Stock Exchange and pivot to Hong Kong.

Several other US-listed firms, including Baidu, NetEase and JD.com, also now trade in Hong Kong, but none of those big names have yet to mirror Didi's decision to pull out of New York entirely.

-- CNN's Beijing bureau contributed to this report.