Originally Posted by das_peikko
Get yourself a one-way check valve. Voltage goes through but can't come back out.
That's what a diode is.
Regarding to how to protect against it, you need to also have a capacitor or else if the current has nowhere to go, voltage may spike up high enough to fry stuff.
If the other side is just resistance load that's fine, but it wouldn't have generated reverse load. If the other side is inductance load (inductor, motor in regen) then that load can really fry stuff quick, depends on how big it is. I once worked on 2 motor controllers, 1 had 8 giant capacitors inside taking up 1/2 of the space and a cheap power supply, and the other had none what so ever but a nice switching power supply. Guess which one blew up all the time?
If you can't put a lot of capacitors there to buffer the power, do not use switching power supply, use a non-switching one instead (they are more tolerance of reverse and may send it back to the supply side), you will likely drop efficiency from 90% to around 60% easily though.