How do I secure a shower curtain rod?
You can buy brackets like this one that attach to the walls.  You still use a spring loaded rod, but the ends go into the brackets and the brackets keep the rod from falling.

Typically the brackets are attached to the wall with standard drywall anchors.