The Texas House of Representatives have approved a bill on social media privacy.

House Bill 318 prohibits employers from asking job applicants or employees for their passwords to access their Facebook, Twitter, Google Plus or other personal accounts.

Lawmakers who voted against the bill claim it provides cover for those seeking to steal information in the workplace and potentially hurt technology companies.

The bill was approved on a 79-61 margin and now heads to the Senate for final approval. Three other states - Arkansas, New Mexico, and Utah - have similar legislation passed this year.