The precautions and contraindications for preventing infection after having tubal imaging include drug prevention, prohibition of tub bath and sexual life, etc. 1. Drug prevention: hysterosalpingography is an examination method to check whether the fallopian tubes are smooth, and can understand the blockage site and the shape of the uterine cavity, which should be operated by professional physicians. Due to the operation of the uterine cavity, antibiotic treatment such as metronidazole should be given as prescribed by the doctor after the imaging, which can effectively prevent the occurrence of infection. 2. Prohibit pelvic bathing and sexual life: after the imaging, it is also important to prohibit pelvic bathing and sexual life for 2 weeks to avoid the occurrence of uterine infection. 3. Pay attention to personal hygiene: due to the operation of the uterine cavity, there will be a small amount of vaginal bleeding after the operation, so also pay attention to keep the vulva clean and dry, change the underwear and sanitary products diligently, and observe the vaginal bleeding.