Coffee shops also are banned from serving alcohol and from selling drugs to people under 18.
The government in The Hague said Friday there would be no exceptions to the new rules.
“Amsterdam will also have to enforce this policy,” said Job van de Sande, a spokesman for the Ministry of Security and Justice.
The conservative Dutch government introduced the new measures saying it wants to return the shops back to what they were originally intended to be: small local stores selling to local people.
However the Dutch government collapsed this week and new elections are scheduled for September. It is unclear whether the new administration will keep the new measures in place.
Coffee shop lawyer Veldman called Friday’s court ruling a political judgment.
“The judge completely fails to answer the principal question: Can you discriminate against foreigners when there is no public order issue at stake?” he asked.
Coffee shop owners in the southern city of Maastricht have said they plan to disregard the new measures, forcing the government to prosecute one of them in a test case.
'Your papers, please' must never be heard in America
Independent voices from the TWT Communities
Sometimes life requires a paradigm twist.
We all eat, and food should be fun and healthful. Food Commune celebrates the food we eat, the people we eat with and the spirits we enjoy.
First over-the-counter column approved for fast and effective relief from even your worst media-induced headache.
Benghazi: The anatomy of a scandal
Vietnam Memorial adds four names
Cinco de Mayo on the Mall