The Espionage Act of 1917 was made in reaction to World War I and forbade actions that obstructed recruitment or efforts to promote insubordination in the military.