Ok, it is quite straight forward the steps that need to be taken to combat this and at least keep a large portion of spoofers at bay.
I would say that Niantic need to invest money into more staff and workers, with a proper reporting system that works. Setting requirements within their reporting that are foolproof may need to be developed.
In my post I am not talking about the odd spoofer. I am talking about an infestation of botter accounts taking gyms in a whole city like mine. We are talking at least 70-100 gyms which are not just taken once, they are being taken and militantly maintained at level 10, with high level 35+ accounts and pokemon.
Believe me, it is not difficult to catch these particular spoofers in the act. They are not careful about it. All you need is some people on the ground with the right tools and motivation to help catch them in the act. Blanket bans should then be enforced on all such accounts on those gyms, with the opportunity of appeal process.
For sure this will cost money, but if a few intelligent people who are invested in the game get together to brainstorm ideas on how to combat it, a solution may be found and the gyms & game saved.
I am interested to see what the new gym rework will bring and if it will resolve not just the spoofer problem but also the meta problem where only around 7 pokemon are actually useful in the end game.