HONG KONG — A major city in China is cracking down on pet dogs, banning dog walking during the day and prohibiting many larger breeds, after a publicized fight between a dog owner and a bystander.

The new rules in Hangzhou, in eastern China, were adopted after a dog owner was filmed pushing and shoving a woman who had kicked his dog. Before the fight, surveillance footage showed a young boy hiding behind her as the dog circled them without a leash.

The harsh restrictions on dogs — which hark back to anti-pet rules in earlier decades of Communist rule and reflect continuing tensions over the place of dogs in society — officially took effect on Thursday. In addition to a dog walking ban from 7 a.m. to 7 p.m., officials vowed to confiscate or kill dogs that were not properly licensed, fining negligent owners 5,000 to 10,000 RMB, or $720 to $1,440. Dogs found outdoors outside of the curfew would also be “detained temporarily” and their owners could be fined.

The city has also banned 34 “vicious” large breeds, including Tibetan mastiffs, German shepherds, Great Danes, Chinese rural dogs and some mixed breeds. A volunteer involved in animal adoptions said this could make it difficult for dog owners who have already rescued large dogs.