Can a country defend against invasions?
<p>I <s>know</s> think under "premises/occupiers liability" you aren't allowed to set up things like booby-traps, to stop trespassers / invaders.</p>

<p>Are countries/militaries exempt from such laws?</p>

<p>If so, how are weapon systems like PHALANX CIWS, an autonomous anti-missile weapon system, in use?</p>

<p>Is is a matter of discriminance, in that, a booby trap can harm anything, where as systems such as PHALANX CIWS only defend against, what it thinks are, attacks? Or, is it that militaries follow different laws?</p>

<p>For example, was the shooting down of the Russian jet, by Turkey, illegal?</p>

<p>You could almost <em>define</em> a country as, "an entity that can defend itself against invasions."</p>

<p><em>Non-sovereign</em> entities are indeed <a href="https://law.stackexchange.com/a/4309/10">generally prohibited</a> from deploying <a href="https://law.stackexchange.com/q/16822/10">lethal autonomous defense systems like booby-traps</a>.</p>

<p>But governments and state-like actors, as a matter of practice, <em>choose</em> their own rules.  <a href="/questions/tagged/laws-of-war" class="post-tag" title="show questions tagged &#39;laws-of-war&#39;" rel="tag">laws-of-war</a> and <a href="/questions/tagged/international-law" class="post-tag" title="show questions tagged &#39;international-law&#39;" rel="tag">international-law</a> are not like "regular" law:  When it comes down to it, states only follow international conventions and treaties to the extent that they consider it to be in their own interest to do so.</p>

<p>If you start mining your property, you will probably be forced to stop by local law enforcement.  If a warlord starts mining his borders, he's going to get away with it until someone with more power convinces or forces him to stop.</p>

<p>Was it "illegal" for Turkey to shoot down a Russian military aircraft?  One could cite all sorts of laws and conventions to answer that question.  But in practice the consequences of that act are limited to whatever Turkey allows, or to what Russia and its allies can impose on Turkey.</p>

self-defense weapons laws-of-war