TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Which OSS licence? I don't want one specific company to touch it?

4 点作者 whizzkid大约 6 年前
I do not want a company to directly or indirectly to use my open source project. This includes everything. Forking, using it as a service from others and etc.<p>And the rest of the people and entities can use it with MIT licence.<p>Is there any way to achieve this?

8 条评论

FBT大约 6 年前
You can license your project however <i>you</i> would like to. You absolutely can have a license with text that is similar to the MIT license, except with a clause saying that company X can&#x27;t use it. However, as other commentators here point out, you could not, in good faith, call that &quot;open source&quot; under the standard, accepted definitions of that term.<p>So the answer to &quot;is there any way to achieve this?&quot; is twofold. If the question is &quot;can I achieve this and still legitimately use the term &#x27;Open source software&#x27;?&quot;, the answer is a flat-out &quot;no&quot;. If the question is &quot;can I set it up legally in this way, without regards to the terminology&quot;, the answer is yes.<p>A license is a pretty free-form thing. You can write whatever text there you want. You may wish to consult with a lawyer, in order to get some legal assurance that what you wrote makes legal sense and will hold up in court. This is especially true if you want to be very sure that you didn&#x27;t accidentally leave some loophole in your wording that will allow the company you dislike to use your project against your will.<p>You are going to have to write the text of this license yourself (or pay a lawyer to do it for you): you&#x27;re not going to find much of this kind of &quot;almost-OSS&quot; license out there for you to base yours off of, because in general, those who want to license their software as OSS actually do want a fully OSS license. But there are a few examples, although not <i>quite</i> identical in spirit to your &quot;use case&quot; (excluding a particular company) but instead different variations of not-quite open source. For instance, you can take a look at MongoDB&#x27;s SSPL (<a href="https:&#x2F;&#x2F;www.mongodb.com&#x2F;licensing&#x2F;server-side-public-license" rel="nofollow">https:&#x2F;&#x2F;www.mongodb.com&#x2F;licensing&#x2F;server-side-public-license</a>), and Redis Lab&#x27;s RSAL (<a href="https:&#x2F;&#x2F;live-redislabs.pantheonsite.io&#x2F;wp-content&#x2F;uploads&#x2F;2019&#x2F;02&#x2F;Redis-Source-Available-License-PDF.pdf" rel="nofollow">https:&#x2F;&#x2F;live-redislabs.pantheonsite.io&#x2F;wp-content&#x2F;uploads&#x2F;20...</a>).
评论 #19376485 未加载
WoodenChair大约 6 年前
There is certainly a way to do this, but by definition such a license would not be “open source.” See clause 5 of the open source definition: <a href="https:&#x2F;&#x2F;opensource.org&#x2F;osd-annotated" rel="nofollow">https:&#x2F;&#x2F;opensource.org&#x2F;osd-annotated</a>
评论 #19366124 未加载
Nuzzerino大约 6 年前
A good compromise that would keep things equal for everyone would be to use a strong copyleft license (GPL). Normally when I think of specific scenarios involving companies using it (a real issue that has come up for me before), GPL was strongly considered as an option. Not to prevent them from using it, but rather to ensure that they don&#x27;t use the free software to gain a further advantage without giving their own improvements to that same software back to the community.
评论 #19375654 未加载
lincpa大约 6 年前
Your property, you have the right to do disposal, it is not important to comply with the open source definition.
Spooky23大约 6 年前
What’s your objective for the project?<p>You can do anything, but a weird license restriction is going to turn off many potential users. I don’t know or care about who you dislike, and my counsel will not sign off on deploying something that cannot be used by some random people.
评论 #19376508 未加载
hacknat大约 6 年前
Instead of targeting a specific company why not prohibit the use case you don’t like? Otherwise I have to agree with others that this seems retributive and childish.
评论 #19376519 未加载
caymanjim大约 6 年前
This is antithetical to the entire notion of open source. It also sounds like a childish tantrum.
评论 #19367041 未加载
评论 #19367267 未加载
gtirloni大约 6 年前
Why?