Main factor in increasing terrorism is money.Any state which wants to curb this should amend their law to confisticate this money by first sealing the accounts which are sucpecious of halping the terrorist and the asking the holders to prove innocency to release.
Just take away mony on which they dance and make others to dance and then eradicate them irrespective of some innocbnt be secrificed.