WASHINGTON—The Securities and Exchange Commission voted on Wednesday to bar brokers from granting high-frequency traders unfiltered access to an exchange, a move aimed at imposing safeguards meant to prevent bad trades from disrupting the markets.

"Naked access" lets high-speed traders and others buy and sell stocks on exchanges using a broker's computer code without requiring them to filter through the broker's systems or undergo any pretrade checks.

Such...