open-source-software gpl licensing
Use of gplv2 licensed code in server
<p>Suppose that someone develops a web application, and found a piece of code that they would like to add to their server. But that code is licensed under the GPLv2 license. Does that mean that if they add that code, then the whole server code will have to be open source and free to use?</p>
<p>Can they use this code without having to share their private server code?</p>

<p>This is explained in the GPL FAQ section &quot;<a href="https://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic" rel="nofollow noreferrer">Does the GPL require that source code of modified versions be posted to the public?</a>&quot;.</p>
<blockquote>
<p>The GPL does not require you to release your modified version, or any part of it. You are free to make modifications and use them privately, without ever releasing them. This applies to organizations (including companies), too; an organization can make a modified version and use it internally without ever releasing it outside the organization.</p>
</blockquote>
<blockquote>
<p>But if you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program's users, under the GPL.</p>
</blockquote>
<blockquote>
<p>Thus, the GPL gives permission to release the modified program in certain ways, and not in other ways; but the decision of whether to release it is up to you.</p>
</blockquote>
<p>In the worst case, the server code will have to be open source and free to use <em>for anyone it is being distributed to</em>. So when they give that server software to someone else, then that someone else has to receive it under the terms of the GPLv2. But when they only use it themselves on their own servers, then they can keep the sourcecode and rights to themselves.</p>
<p>Using a software by connecting to it via network is not considered distribution. That's a loophole covered by the <a href="https://www.gnu.org/licenses/why-affero-gpl.html" rel="nofollow noreferrer">AGPL license</a>.</p>
<p>For more information on how the GPL works, I recommend the <a href="https://www.gnu.org/licenses/gpl-faq.html" rel="nofollow noreferrer">GPL FAQ</a>.</p>
