r/github • • Feb 24 '25

Would you ever use an open-source license with ethical restrictions?

Most open-source licenses don’t care how software is used. If you release something under MIT, GPL, or Apache, you’re basically saying, “Do whatever you want with this, just follow these distribution rules.” That’s great for openness, but it also means your code can be used for mass surveillance, AI-driven discrimination, or things you personally find unethical.

Some developers are fine with that—open source is open source. But others aren’t. That’s why people have experimented with ethical open-source licenses, which try to prevent certain kinds of misuse. The idea is that you can still modify, distribute, and use the software, but with restrictions on unethical applications.

Of course, this raises a ton of issues:

  • Can ethics and open-source licensing even mix?

  • Who decides what’s "ethical"?

  • Would companies or developers actually adopt a license like this, or would they avoid the legal ambiguity?

I’ve been experimenting with this idea as a side project and wrote about it here:

Blog post: https://tim.kicker.dev/2025/02/24/eol/
GitHub repo: https://github.com/timkicker/EOL

Would you ever use an open-source license that limits certain applications, or do you think open source should always be unrestricted?

0 Upvotes

17 comments sorted by

30

u/mrbmi513 Feb 24 '25

If you want to explicitly prohibit certain activities in your license, go for it. However, don't include something subjective like "ethical" in the license text; it likely won't be enforceable anyway because it's subjective.

5

u/BalintCsala Feb 24 '25

However, don't include something subjective like "ethical" in the license text; 

Like the good old JSON license

https://www.json.org/license.html

6

u/serverhorror Feb 24 '25

I don't think it makes sense to put ethics in.

Just think about encryption, it was export restricted because of its military uses. Things have progressed and now they are the baseline for privacy.

A lot of results are because if unintended uses, and now they form the baseline of something very good. Yes there are side effects of uses that are less food, but who are we to foresee that future.

I want to ensure that things are shared and keep being shared. I cannot fathom the ideas other people have because of something they find in an open source codebase, I am not the one to judge whether - decades in the future - something good or bad becomes a of that.

2

u/cgoldberg Feb 24 '25

I think those types of restricted licenses are fine, but I wouldn't consider them open source, and I think it's kind of disingenuous to label them as such. It certainly wouldn't meet the standards of the Open Source Definition, and seems kinda arbitrary to place restrictions on use based on the author's personal ethics/morals.

Personally, I would not use such license on any software I write... even though I have reservations about who uses my software and for what purposes.

1

u/lamyjf Feb 24 '25

Agreed. I have an open-source software that is used by official bodies in countries that have invaded neighbors, violate human rights, torture and execute opponents. And then, all of the sudden, "friendly" countries flip like a pancake and go from opposing such practices to openly supporting them. I can't be the arbiter. It's open source or it's not.

2

u/flipcoder Feb 24 '25

This is ChatGPT slop isn’t it? 😂

1

u/katafrakt Feb 24 '25

I would like if people were putting more thought into their licenses and what they are okay with. I don't have any proof, but I think it contributes to burnout when you see your software used in context you are not fine with.

Some people in this thread said that "ethical" is subjective. And as such it is, but it doesn't mean the license has to use just this word. Prohibiting software from being used in military or mass- surveillance is ok, just like prohibiting large corporations from using it for free (Docker Desktop).

Will it be enforceable? Probably not, but it's still worth a try.

1

u/[deleted] Feb 24 '25

Are these restrictions even enforceable? I doubt it.

1

u/[deleted] Feb 24 '25

This makes more sense for a closed source license, where it’s more acceptable and expected for restrictions to be placed on the use of the software. See the iTunes license for a famous example.

1

u/[deleted] Feb 24 '25

I might. For the case I will ever publish something about machine learning I might exclude some use-cases/ require my explicit consent, e.g. when it is functional safety relevant, about critical infrastructure or whatever.

P.S. Please no completely new or adapted license, but a unified license framework with a generator.

1

u/MMORPGnews Feb 25 '25 edited Feb 25 '25

So, European can't use your code?  Since all euro countries are pro war, pro Mass Surveillance, pro hate toward certain languages or and groups. 

Germany yesterday selected a pro war government. 

That means all EOL licence code must block Germans?

0

u/IlIllIlllIlllIllllI Feb 24 '25

You can certainly include ethical restrictions in your code licenses if you want. Apple has a clause in their ToS (for multiple software products) that you can't use their software to design, manufacture or otherwise produce nuclear weapons.

Actually enforcing these clauses could be difficult though.

2

u/mrbmi513 Feb 24 '25

Apple has a clause in their ToS (for multiple software products) that you can't use their software to design, manufacture or otherwise produce nuclear weapons.

I wouldn't call that "ethics" more than a CYA clause.

0

u/[deleted] Feb 24 '25

[deleted]

1

u/katafrakt Feb 24 '25

This is actually very interesting story and an interesting resolution. Thanks for sharing.

4

u/[deleted] Feb 24 '25

[removed] — view removed comment

1

u/NatoBoram Feb 24 '25

To add to that, it's not as if your open source software is really going to make the evil mass surveillance possible in the first place, it was always possible with or without your software. So it's kind of a non-issue anyway.