How did the US government limit American opposition to world war 1?

The Woodrow Wilson administration sought to keep down the protests against the war with legislation. The Espionage Act of 1917 was mainly to prevent spying, but there was a section that prevented anyone from encouraging someone to resist service in the armed forces.