I’m a strong supporter of full open-sourcing, the benefits are amazing.
That’s just my opinion.
Even if you don’t do anything weird like scrambling up the code so it’s illegible, you can still set up the license to protect your work if you’re planning on selling it. I’m certainly not an expert on that, but I’m pretty sure you’d have to hire a lawyer for that kind of thing. Even if you use a server-side language I can’t see by viewing the source of your site you’d want to do this.