It's very simple. No more immigration from those countries.
Boots on the ground in Syria. Shoot to kill. Anyone involved with Isis dies. Anyone who provides material support dies. Public executions in the town squares to let them know what happens to Isis sympathizers.
Or accept airplane and stadium bombings every month.
Yep, I'm pretty sure that would solve the situation rather than makes matters worse.