Need a window exhaust fan with louvers that close automatically
Plenty of manufacturers make louvered fans that only require air flow (or the lack of) to operate the louvers. If you don't want to screw the flange to the window frame, you can attach a smaller one to a plywood insert, cut to fit snugly inside the frame.



source