The Boston Marathon will bar any residents of Russia or Belarus from participating in the world-class race, organizers announced Wednesday.