I'm running public web site based on Drupal. Drupal is GPL 2 or 3 licence. Of course I wrote custom code which interacts with Drupal code (modules). Can anybody write me an e-mail and ask for the source code of that my custom code? In other words, have I to publish that my code somewhere?
2 Answers
If your code is sitting on a web server and you are only serving web pages (or web services containing application data), then you are not "distributing" under the terms of the GPL 2 or GPL 3.
The Affero GPL is the one that requires you to release your source code if you are distributing web pages using software under that license.

- 198,589
- 55
- 464
- 673
GPL restricts distribution of source code. Your Drupal code is server side, it lives on your server and no client can see it. It's not really been distributed. So, you don't have to release your code if you don't want to.
As stated in the other answer, the Affero GPL is the GPL variant that requires you to release (which would be the same as distribute) the code you're using to publish your web pages (see this question).
Do note, however, that this applies to server side code. You should be careful with Javascript, since that code actually makes it to the client's machines.

- 765
- 5
- 17