The invention discloses an electric-shock-prevention safe socket. Through detecting the frequency of changes of the blood volume of finer blood capillaries along with the cardiac impulse, whether a finger is inserted into the socket or not is judged. The safe socket concretely comprises a socket shell, a touch switch, a detection circuit, a socket internal insertion spring, an LED infrared light emitting tube and a photosensitive receiving tube. In need of using the socket, the touch switch is turned on to supply power to the detection circuit, the LED infrared light emitting tube and the photosensitive receiving tube, the LED infrared light emitting tube emits light, when the finger is inserted into a hole of the socket, the photosensitive receiving tube receives beat frequency, the detection circuit detects the beat frequency of the impulse of the human body, and the socket is powered off; when a non-light-transmitting metal object or other objects is / are inserted into the socket, the detection circuit obtains a low-level waveform, and the socket is powered on; when no object is inserted into the socket, the detection circuit obtains a high-level waveform, the socket is powered off, and accordingly the detection circuit enters into dormancy. The safe socket has the advantages of being safe to use and reasonable in structure, reducing energy consumption and the like.