Since swatting emerged as a national problem, both federal and local laws have been used to fight it.