Definition of the guardrail are a railing placed alongside a stairway or road for safety .