The Illinois House wants to bar employers from asking workers and job applicants for access to social media like Facebook.
The legislation passed 78-30 Thursday and now goes to the Senate.
Some employers, particularly law enforcement, have begun asking for passwords so they can review the online activities of job applicants.
Under the legislation sponsored by Democratic Rep. La Shawn Ford, workers could file lawsuits if pressured to open up private accounts or they're denied a job for refusing. Bosses could still ask for usernames to view public information online, and they can monitor work-owned computers.