Slovenia will keep out all migrants apart from those planning to seek asylum in Austria and Germany, Interior Minister Vesna Gyorkos Znidar told a news conference, adding the country would also strengthen border controls.
The announcement on Thursday came a day after its neighbor Austria said it would restrict the entry of migrants.
"We will act in all directions so as to prevent Slovenia becoming a pocket for stranded migrants," Gyorkos Znidar said after a regular government meeting.