Having chased a number of these to the source, they sort into four buckets and only the last is interesting.
Pure invention. No statute, no ordinance, no record of either. The claim traces back to a listicle citing another listicle citing a third, and the chain terminates without ever reaching a legal text. This is the largest category by a wide margin.
Repealed long ago. A real law once existed and was removed decades or centuries back. The list reports it in the present tense because "was repealed in 1912" makes a worse item.
Real but wildly misdescribed. A general ordinance about obstruction or public nuisance gets retold as a specific ban on one absurd act. The underlying rule is mundane; the retelling is not.
Real, obsolete and unrepealed. These do exist. Legal codes are large and nobody profits from tidying them, so genuinely archaic provisions can survive. They are also, almost always, unenforceable — superseded by later law, or by constitutional provisions that override them.
That last point is the one the lists never mention, and it is the whole story: a provision sitting in an old code is not the same as a rule anyone could be prosecuted under.