How about a tailgate net?
Can be bought everywhere,
Cheap,
Removable when not in use,
Strong,
Durable,
Can be spray painted to match the trailer[thumbzup],
Will flex enough to have lumber hanging out an inch or so,
Will keep lumber from moving back.
This combined with ENTRAIL's idea of the...