Joshua Freilich, Henda Hsu, and Steven Chermak explore the issue of how to deter and prevent terrorist attacks from taking place. Their review shows that a variety of measures can be taken, but that the consequences are not always positive.
Freilich, Joshua, Henda Hsu, and Steven Chermak. 2018. "Deterring and Preventing Terrorism." In Routledge Handbook of Terrorism and Counterterrorism, ed. Andrew Silke. New York: Routledge. https://books.google.com/books?id=23tqDwAAQBAJ&pg=PT2&dq=%22Routledge+Handbook+of+Terrorism+and+Counterterrorism%22+andrew+silke&hl=en&sa=X&ved=0ahUKEwi3kajPz43dAhWIt1kKHUu9AAcQ6AEIJzAA#v=onepage&q&f=false