Endless armed conflicts against terrorist groups put civilian populations at risk. Since France has been involved in the Sahel from 2013 onwards, transnational non-international armed conflicts (NIACs) of extended geographical and temporal scope against groups designated as terrorists are not a US exception anymore. NIACs against terrorist groups, conducted not only by the United States but also by France, persist and have been reconfigured around threat anticipation. How can anticipatory warfare be best constrained? This article argues that it can be best done through more constraining rules regulating target selection in NIACs and, in particular, by redefining the notion of continuous combat function (CCF). Many elements explored in this article indicate that the United States and France select targets that they pre-designate as terrorists, before these targets are engaged in hostilities. Instead of responding to the observed participation of these individuals in hostilities, strikes are based on contextual and behavioural elements ahead or outside of such moments. This paper argues that when war consists of threat anticipation, it becomes very extensive and particularly risky for civilians. Furthermore, recent State practice in the counterterrorism context reveals the pitfalls of the notions of direct participation in hostilities and CCF as defined in the 2009 International Committee of the Red Cross Interpretive Guidance. Outside this context, the interpretations proposed in the Interpretive Guidance might seem sufficient to constrain target selection processes and to protect civilian populations. However, when applied to armed conflicts that are driven by threat anticipation, the pitfalls of these interpretations emerge. I formulate a critique of these interpretations as being partly responsible for anticipatory warfare and propose an alternative theory for the CCF test.