Capacitor setup would do it I’d think- they’re used to filter spikes for free circuits all the time.
I was thinking that it would probably need to be a big one, though. :)