The technique of sterilizing a male by blocking the vas deferens is known as
Vasectomy
Vasectomy is a surgical procedure of sterilization of males and/or permanent contraception. During the procedure, the male vasa deferentia are severed and then tied/sealed in a manner so as to prevent sperm from entering into the seminal stream (ejaculate) and thereby prevent fertilization.