Starbucks says it is reversing rules for its cafes in North America that allowed people to use their facilities even if they had not bought anything.
The changes, which are set to come into force from 27 January, are a U-turn from a policy introduced six years ago that allowed people to linger in Starbucks outlets and use their toilets without making a purchase.
The move is part of the "back to Starbucks" strategy - a plan announced by the firm's new boss as he tries to tackle flagging sales.
The world's biggest coffee chain says its new code of conduct - which also addresses harassment and bans smoking and outside alcohol - aims to make its stores more welcoming.
The company said the new rules will be displayed at every store and staff will be instructed to ask anyone who violates the code of conduct to leave. That includes allowing employees to call the police when necessary.
In 2018, Starbucks decided to allow free access to its coffee shops and toilets after the controversial arrest of two men at one of its Philadelphia cafes.
Other changes set to be introduced later this month include offering one free refill of hot or iced coffee for customers who buy a drink to consume on the premises.