I say that we first begin by deporting flaming friggin' idiots - meaning you.
Then we should consider that the problem is student, business, and tourist visas (immigrant visas are vetted reasonably carefully), and that our concern is Middle Eastern terrorism (not Japanese, French, Swedish, or Ecuadorean immigrants).
From there we need to act rationally but firmly, and not in the hysterical manner prescribed by wingnuts who've forgotten to take their medication.