The Danish Parliament has voted in favor of regulating this, after Denmark's highest court made a decision last year that in practice repealed an earlier ban from 1915.
It was about a family on Jutland who were taken to court for hoisting the American flag in their flagpole. A lengthy legal process was driven to the highest instance, where it was established that there is no reason for the authorities to intervene when someone wants to hoist another country's flag in their own flagpole.
Denmark's sitting government has then taken the initiative for new legislation to ban this. With the support of opposition parties to the right, it was finally adopted on Tuesday.
When the proposal was presented last summer, Justice Minister Peter Hummelgaard (S) stated that it is about the so-called Dannebrog being the country's "most important national symbol" and that it deserves a "completely special" status.
However, there are several exceptions. Nordic flags – including Sweden's – and Germany's flags may still be hoisted in Danish flagpoles, as well as Greenland's and the Faroe Islands' respective flags.
Exceptions are also made for demonstrations and sports events, and for other cases where special circumstances are deemed to exist.