I'll respond to that straw man. I am asking to which of the "40 percent of the world’s nations" are you suggesting we read the riot act, and threaten to bomb if they let terrorists in? So far you have only mentioned Afghanistan.
Afghanistan is different. It was run twenty years ago on 9-11 by the Taliban who gave aid and comfort to Al Khaida. Taliban are still around and may take back control. That's why we should "read them the riot act. "
IN any case, we're not bombing 40 countries. Only seven that I could count where terrorists have set up bases: Afghanistan, Iraq, Syria, Somalia, Pakistan, Libya, Yemen. The rest we have some sort of military arrangement with the government: training, bases, etc. A few we have done ground combat missions with the cooperation of the host countries: Chad, Mali some of the above mention bombing countries, etc.,
Look at the map. It spells out where we've been and what we've done.
https://www.smithsonianmag.com/history/map-shows-places-world-where-us-military-operates-180970997/