The invention discloses an oilfield wellhead quantitative dosing device with backflow self-protection, and relates to the technical field of oilfield wellhead dosing devices, including a first housing, a first liquid medicine storage, a first transparent measuring barrel, and a first slip ring , the first electric push rod, the first displacement sensor, the first L-shaped connecting pipe, the second liquid medicine storage, the second transparent measuring barrel, the second slip ring, the second electric push rod, the second displacement sensor, the second Solenoid valve, the second L-shaped connecting pipe, the third L-shaped connecting pipe, the pipe joint and the detection spray-melting mechanism; the present invention reduces the crude oil impurities by dissolving the wax on the inner wall of the oil pipe and the mineral impurities contained in the crude oil in the oil pipe , and by detecting the first pressure sensor and infrared sensor and the first displacement sensor and the second displacement sensor in the spray-melt mechanism, the collected data in the oil pipe are collected, analyzed and sorted out to analyze and obtain the quality of crude oil.