4 ms·
Ask HN: How to open-source to friends but not to enemies?
I want to open-source the tech, but I don't want it to be used for malicious purposes
- talldayo 2y agoYou really can'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. Most Open Source licenses (famously GPL) can make life pretty miserable on downstream corporate users, if that's your imperative. But if licensing as a whole has taught us anything it's all just data at the end of the day.
- thesuperbigfrog 2y agoOpen Source licenses do not allow discrimination against who uses the software or what they use it for: "5. No Discrimination Against Persons or Groups The license must not discriminate against any person or group of persons. 6. No Discrimination Against Fields of Endeavor 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." Source: https://opensource.org/osd https://opensource.org/osd Feel free to use some other license if it suits your needs or purposes. It is your software, license it how you want to. Some considerations: https://geekflare.com/software-license/ https://geekflare.com/software-license/
- ellis0n 2y agoThank you and a great answer!
- ddingus 2y agoNot possible. Sorry. What you can do is write your friends great licenses and hope they do the right things. That is a lot of work, and it is not really open in the sense that has all the value.
- gregjor 2y agoDon’t have enemies.
- solardev 2y agoJust don't make it public, and only share it individuals you know and trust?
- not_your_vase 2y agoWell, you can always go with the JSON license[1] ("The Software shall be used for Good, not Evil."), though there are 2 things: - This license is only open source in spirit, but technically not really due to this restriction. - 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... 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't distribute the binary of your application, you don'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. [1]: https://www.json.org/license.html https://www.json.org/license.html
- singpolyma3 2y agoIt wouldn't be open source if you did, but let'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't stop them.
- ttyprintk 2y agoRelated inspiration for a programmer Hippocratic oath: https://news.ycombinator.com/item?id=5633551 https://news.ycombinator.com/item?id=5633551