“Just block him” is the new “Don’t wear a short skirt to the dance club if you don’t want to be groped.”
“Change your settings so strangers can’t send you friend requests” is the new “Don’t walk alone at night.”
That sort of advice puts the onus for behavior change on people who were already behaving appropriately.
That sort of advice does NOTHING to change the behavior of the people who behaved badly.