" The practice was started in Southern states, which were among the first to enact laws against concealed carry of guns and knives, in the early 1800s. While a few citizens challenged the bans in court, most lost. Winkler, in his book
Gunfight: The Battle Over the Right to Bear Arms in America, points to an 1840 Alabama court that, in upholding its state ban, ruled it was a state’s right to regulate where and how a citizen could carry, and that the state constitution’s allowance of personal firearms “is not to bear arms upon all occasions and in all places.”
Louisiana, too, upheld an early ban on concealed carry firearms. When a Kentucky court reversed its ban, the state constitution was amended to specify the Kentucky general assembly was within its rights to, in the future, regulate or prohibit concealed carry.
Still, Winkler says, it was an affirmation that regulation was compatible with the Second Amendment. The federal government of the 1800s largely stayed out of gun-law court battles…
As Dykstra wrote, frontier towns by and large prohibited the “carrying of dangerous weapons of any type, concealed or otherwise, by persons other than law enforcement officers.” Most established towns that restricted weapons had few, if any, killings in a given year."