Riding the rails cross country may sound romantic but the practice is dangerous, costing dozens of rail riders their arms, legs and even their lives.

And even though the practice is illegal, some accident victims or surviving family members have sued the railroads seeking damages.A bill sponsored by Rep. Jerrold Jensen, R-Salt Lake, would preclude rail riders from collecting civil damages from railroads if they suffer injuries.

"If they are foolish enough to get onto a train without authorization, they can't expect to recover anything from them," said Dennis Farley, attorney for Union Pacific Railroad to the Senate Transportation/Public Safety Committee.

HB164 was approved unanimously and forwarded to the Senate for further consideration.