In Heller v. District of Columbia, Justice Antonin Scalia wrote the following in his majority opinion:
Like most rights, the right secured by the Second Amendment is not unlimited.
From Blackstone through the 19th-century cases, commentators and courts routinely explained that the right was not a right to keep and carry any weapon whatsoever in any manner whatsoever and for whatever purpose.
For example, the majority of the 19th-century courts to consider the question held that prohibitions on carrying concealed weapons were lawful under the Second Amendment or state analogues.
Although we do not undertake an exhaustive historical analysis today of the full scope of the Second Amendment , nothing in our opinion should be taken to cast doubt on longstanding prohibitions on the possession of firearms by felons and the mentally ill, or laws forbidding the carrying of firearms in sensitive places such as schools and government buildings, or laws imposing conditions and qualifications on the commercial sale of arms.