https://www.taosnews.com/news/taos-bark-how-to-protect-yourself-from-loose-dogs/article_6b624aca-f83d-572d-a7c1-50eff7470ad2.html
This link is an informative article on the aggressive dog problem, although I think it is a bit on the lightweight side. I am an avid bicyclist and walker and also a victim of an aggressive dog when a child (30 stitches). I find soi dogs in thailand some of the most aggressive I have ever encountered. And it is a problem, just look at all the kids (and adults) that are attacked in Thailand (and my country, the USA). Owners fault for sure, but you do have a way to protect yourself (as I have). I use either a spray solution of vinegar and water or a pepper spray, depending on weather I am walking or riding and which route I am traveling. Neither hurts the dog permanently and both will teach the dog not to aggressively attack people on the sidewalk. I know dog lovers and some owners will very much disagree with these tactics but I am convinced they will get results and leave the dog unharmed.