How Can I Stop Creepers Destroying Blocks On Minecraft [duplicate]

You can set /gamerule mobGriefing false. This will also prevent Wither damage, Ghast damage, crop trampling and Endermen moving blocks. This works in singleplayer too.