It is against the law to rent a house based on a person's gender. It might violate the Fair Housing Act if a landlord advertises to appeal to a certain gender preference. However, when looking for a roommate that shares common areas, it is not prohibited to target a certain gender.
Compare the top insurance brands at once for free