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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How to open-source to friends but not to enemies?

4 点作者 ellis0n7 个月前
I want to open-source the tech, but I don't want it to be used for malicious purposes

8 条评论

thesuperbigfrog7 个月前
Open Source licenses do not allow discrimination against who uses the software or what they use it for:<p>&quot;5. No Discrimination Against Persons or Groups<p>The license must not discriminate against any person or group of persons.<p>6. No Discrimination Against Fields of Endeavor<p>The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.&quot;<p>Source: <a href="https:&#x2F;&#x2F;opensource.org&#x2F;osd" rel="nofollow">https:&#x2F;&#x2F;opensource.org&#x2F;osd</a><p>Feel free to use some other license if it suits your needs or purposes. It is your software, license it how you want to.<p>Some considerations: <a href="https:&#x2F;&#x2F;geekflare.com&#x2F;software-license&#x2F;" rel="nofollow">https:&#x2F;&#x2F;geekflare.com&#x2F;software-license&#x2F;</a>
评论 #41747318 未加载
not_your_vase7 个月前
Well, you can always go with the JSON license[1] (&quot;The Software shall be used for Good, not Evil.&quot;), though there are 2 things:<p>- This license is only open source in spirit, but technically not really due to this restriction.<p>- who defines what is malicious? The mouse thinks the cat is a monster, but the cat is only playing catch with a self-moving fur ball...<p>Alternatively you can go the Red Hat way: the GPL license says that the source should be distributed along with the binary. If you don&#x27;t distribute the binary of your application, you don&#x27;t have to give the source to anyone. Red Hat gives the binary to its subscribers (friends), along with the source. If they see that one of their customer has leaked the source, the contract can be terminated. One might be inclined to ask however how much is it different from a closed source distribution model.<p>[1]: <a href="https:&#x2F;&#x2F;www.json.org&#x2F;license.html" rel="nofollow">https:&#x2F;&#x2F;www.json.org&#x2F;license.html</a>
talldayo7 个月前
You really can&#x27;t. You can include conditions of your license that compel the user to not do naughty things with your software, but nobody is going to necessarily arrest them if they do violate your license. For particularly malicious purposes, most people will ignore the license.<p>Most Open Source licenses (famously GPL) can make life pretty miserable on downstream corporate users, if that&#x27;s your imperative. But if licensing as a whole has taught us anything it&#x27;s all just data at the end of the day.
solardev7 个月前
Just don&#x27;t make it public, and only share it individuals you know and trust?
singpolyma37 个月前
It wouldn&#x27;t be open source if you did, but let&#x27;s be honest unless you have very deep pockets for lawsuits anything you write in your license or ToS or anything else is just a suggestion for good actors. People are going to do whatever they want and you can&#x27;t stop them.
ttyprintk7 个月前
Related inspiration for a programmer Hippocratic oath:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5633551">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5633551</a>
ddingus7 个月前
Not possible. Sorry.<p>What you can do is write your friends great licenses and hope they do the right things.<p>That is a lot of work, and it is not really open in the sense that has all the value.
gregjor7 个月前
Don’t have enemies.