A rectifier is an electronic circuit that converts an alternating voltage (rectifying) into a direct voltage. These are often one or more diodes, packed together in one component.
A diode is an electronic component that conducts electrical current very well in one direction, but practically not the other. As a result, a diode often functions as reverse polarity protection.