Next to spanning tree on the edge interfaces you can use loop-protect, you can configure loop protect to disable ports for a period of time. i woud always advise to use spanning tree combined with loop-protect for edge loop detection.
config example:
loop-protect 1-48
loop-protect disable-timer 60 (or any other value in seconds you wish)