That doesn’t work. It’s nothing but an inconvenience to not talk to your neighbors or those around you. They’d just get even worse and make even worse friends online.
Ostracization doesn’t work. Ever. Period. If they’re bad enough, banishment works. Ostracization is just literally ignoring the problem.