9

Does there exist an open source license like GPL, GPLv2, BSD and so on which allows author to prohibit usage of the licensed software in some country?

David Siegel
  • 115,406
  • 10
  • 215
  • 408

6 Answers6

19

For the GPL "family" of open source licenses, the answer is no.

The GPL FAQ answers a closely related question:

I'd like to license my code under the GPL, but I'd also like to make it clear that it can't be used for military and/or commercial uses. Can I do this? (#NoMilitary)

No, because those two goals contradict each other. The GNU GPL is designed specifically to prevent the addition of further restrictions. GPLv3 allows a very limited set of them, in section 7, but any other added restriction can be removed by the user.

More generally, a license that limits who can use a program, or for what, is not a free software license.

I'd also recommend looking into "Why programs must not limit the freedom to run them" (the page linked by the FAQ).
Stallman there argues (among other lines) that copyright is about limiting, well, copies rather than running the program. Similar to limiting the production of copies of a book as opposed to restricting what you are allowed to do with the information contained in the book. (I may add: or restricting who is allowed to read it.) Also, "Imagine selling pens with conditions about what you can write with them."

(So this is basically the FSF's position)


The OSI definition of what requirements a software license must meet in order to be considered open source by them has relevant clauses:

  • 1. Free Redistribution
    (though this says that anyone can distribute the software, it does not directly talk about restricting to whom the software may be given)
  • 5. No Discrimination Against Persons or Groups
  • 6. No Discrimination Against Fields of Endeavor

The OSI has a newsletter post "Open Source responds to the Russia-Ukraine war: First thoughts from the Executive Director", which links to a further discussion on the topic. This is more about politics and ethics than legal questions. However, I think it's relevant in 2 ways:

  1. For the situation at hand: They point out that while the open source definitions do not allow the license to have such restrictions, there is nothing that forces you (or a repository provider) to serve "customers" from all regions worldwide. I.e., geoblocking downloads is not prohibited by the FOSS licenses.

  2. It does show that there is a discussion on licenses that are somewhat more restrictive than the current open source definitions. As David Siegel points out, there's nothing to keep you from putting such restrictions into a proprietary license. And if there are sufficiently many people who want to do that, we may see "more restricted open source" licenses in the future.
    (IANAL, but I'd expect there may be limits to what can be restricted in a boilerplate license wrt. anti-discrimination laws.)


Independently of what the license allows, people are anyways bound by general law, e.g. sanctions.

Laurel
  • 705
  • 7
  • 19
cbeleites
  • 1,762
  • 12
  • 12
7

Frame challenge: why would you want to implement such a restriction with a license? If relevant laws/sanctions prevent conveying the software to a party in or associated with Russia (or whatever nation), they already do that without you writing such a restriction into your license.

If your goal is to impose your own sanctions beyond the law in the relevant jurisdiction, you could write your own such license (or modify an existing one) that grants the permissions to copy and distribute, etc., only as long as the recipient is not [whatever]. As others have noted, this would not be an Open Source license, as the term "Open Source" is a trademark was launched with an intent to be a trademark, which apparently didn't materialize, but still carries with it a very specific defined meaning among people who use the term which excludes the kind of restrictions you're asking for. It would also not be very effective, since anyone in the jurisdiction you're trying to sanction is not subject to the laws of your jurisdiction. In theory you could try to find out who gave it to them and sue that person for copyright infringement, but it's unlikely you would be able to obtain evidence of that unless they just publicly admitted it.

In short: license terms are relevant only to parties who have reason to want to follow the laws in the relevant jurisdictions.

Update on "trademark" issue: While Open Source is not a trademark, the Ninth Circuit just affirmed a ruling that calling software Open Source when it doesn't meet the definition is false advertising.

5

As this answer and this comment point out, such a license would not be an open source license, nor a free software license as those terms are usually defined.

I am not aware of any standard or widely used permissive license that includes such a restriction, or an option for adding one. A license including such a restriction could be written, perhaps by starting with some open source or permissive license and modifying it. However, I do not see any practical way to enforce such a restriction.

David Siegel
  • 115,406
  • 10
  • 215
  • 408
0

Does there exist an open source license like GPL, GPLv2, BSD and so on which allows author to prohibit usage of the licensed software in some country?

Nope. And it's for the same reason you can't put a "license page" in a book that stops people from reading it in Arkansas.

A person who possesses a lawfully-made copy of your work already has the right to use it anywhere just as a person who possesses a lawfully-made copy of a book already has the right to read it anywhere. To take a right away from someone, you must offer them something in exchange and obtain their agreement to the exchange. A simple license doesn't do that.

You might be able to do this with a shrink wrap or click-through agreement. But you can't do it with just a license. It is not sufficient to say that they can't use it in Russia -- you must get them to actually agree not to use it in Russia and you must offer them something in exchange for that agreement.

David Schwartz
  • 3,270
  • 12
  • 23
0

You might be able to make it illegal for Mafia or drug dealers to use your software (or not), but they’ll just laugh about it. But a nation state can just change its IP laws and use the software ”legally”.

gnasher729
  • 35,915
  • 2
  • 51
  • 94
-3

No; by definition, of course not.

Some kind of "semi-open" licence might do all sorts of things and in the context of this Question, where did the "semi…" bit come from?

Robbie Goodwin
  • 324
  • 1
  • 6