I've always believed that the greatest deterrent is NO BENEFITS OF ANY KIND. If they cannot get welfare, housing, medical or schools, they won't come.
Each “unaccompanied refugee minor” reportedly cost the German taxpayer 100 grands each year.