User blog comment:Agent Spy/Trying to set up a LMBW Minecraft Server/@comment-5052737-20131111180643/@comment-7234128-20131112021710

I did some browsing and found this command for single and servers:

/gamerule mobGriefing false

Creepers still spawn and explode though they won't cause any terrain damage. But it will still affect close-by players.