Put a cork in it
Chiefly US informal for telling someone to stop talking or going on about something, dates from the early 1900s, from the obvious allusion to closing off a bottle with a cork. See also Corker.