This is widely practiced in days of WW2, anti-tank obstacles from old railway sleepers. Cheap and cheerful constructions are good against only light tanks and armored personnel carriers.