You can purchase replacement bed rails in many sizes. There are two main types of bed rails: Hook-On and Bolt-On. Below is a picture of a Hook-On style bed rail.
A typical hook-style bed rail. Please note the measurements are not exact
and may vary slightly by manufacturer, but these work for most beds in
which the rails attach by hooking in to the head and/or footboard.