Years ago, I offered up the opinion that the answer to the Taliban is local militia. Each village would have a militia commander and volunteers, and a village armory, manned and guarded 24/7. Festivals, markets, weddings, any gathering of people, would have a militia element.
The Taliban would find cutting heads off a lot harder if people were allowed to fight back. Like most cowardly terrorist groups, they are a lot more eager to terrorize when their targets are helpless.
Of course, the standard argument applies... militia members would form rebel groups, join warlords, engage in lawless behavior. Maybe, but I think the percentage would be low. Like any sample population of humans, the majority want to live their lives unmolested and watch their children grow up.