What is the open or close door policy?

The open door policy is when a certain country (like China) allow foreigners in their country. Now a closed door policy is when a coutry doesn't allow foreigners in their country.