In this article · 5 sections
WordPress, jQuery, Bootstrap, PHP libraries: most websites are built on open source software. Open source licenses let you use this code freely, but each comes with conditions. Here's what they mean in practice.
Common licences
| Licence | In short | Examples |
|---|---|---|
| MIT | Use, modify, sell freely; keep the copyright and licence notice | Bootstrap, jQuery, many JS libraries |
| Apache 2.0 | Like MIT, plus an explicit patent licence and notice requirements | Many Google/Apache projects |
| GPL (v2/v3) | Free use; if you distribute modified or combined software, you must share source under GPL | WordPress, many plugins/themes |
| LGPL | Like GPL but allows linking from non-GPL software | Some libraries |
| Creative Commons | For content (images, text), not usually code; check BY, SA, NC, ND conditions | Photos, illustrations |
What this means for websites
- Running GPL software on your own website generally doesn't require publishing your site's code; obligations mostly arise on distribution
- Keep licence notices in bundled files (don't strip headers from MIT/Apache libraries)
- Selling a theme or plugin built on GPL code typically means it must be GPL-licensed too
"Nulled" themes and plugins
Premium WordPress themes are often GPL for code, but the seller's images, support, updates and branding aren't free. "Nulled" downloads frequently contain malware and may infringe on non-GPL assets. See cybersecurity tips.
Practical checklist
- Use official sources for themes/plugins
- Keep a list of libraries and licences used
- Respect attribution requirements (Creative Commons BY needs credit)
- For proprietary client software, check that GPL code isn't mixed in a way that conflicts with distribution plans. See software copyright
FAQs
Can I use an MIT library in a commercial website?
Yes, keeping the licence notice.
Is a GPL theme "free" to copy from someone's site?
The code may be GPL, but their content, images and branding are not.
This article is general information, not legal advice.
Was this article helpful?
Your answer helps us improve our guides