Australia does it best, they ensure there is no illegal immigration by stopping illegal immigrants from setting foot on their soil.
We have no obligation to take anyone, and even if they arrive here, under the rules of asylum we should just bung 'em back - we won't be the first safe country they come to. Maybe a change of benefit rules would keep them away.