For the top of the stairs, you need a hardware-mounted stair gate. These gates are securely fastened to the walls or banisters, providing a strong and stable barrier that cannot be easily dislodged. Avoid pressure-mounted gates for the top of stairs, as they can be pushed out of place, posing a safety hazard. Look for a gate that swings open away from the stairs and has a reliable locking mechanism. Always follow the manufacturer's installation instructions to ensure maximum safety.