MENLO PARK (CBS / AP) — Facebook says it will no longer allow advertisers to use ethnicity as a filter when it comes to targeting or hiding ads offering housing, employment or credit.

The changes come after ProPublica reported that, besides hobbies and interests, advertisers could exclude specific races from seeing their ads. This could be illegal in some circumstances, such as with housing ads.

READ MORE: Johnson & Johnson COVID-19 Vaccine Clears Major FDA Hurdle

Although Facebook doesn’t actually ask users their race, the service can make a pretty good guess based on other information users share.

READ MORE: Federal Court Rules California Can Enforce Net Neutrality Law

On Friday, Facebook said discriminatory ads have “no place” on the site. Rather, it says the filters are designed for reaching “multicultural audiences with more relevant advertising.” Race and ethnicity filters will still be allowed for ads that aren’t about housing, employment or credit.

MORE NEWS: Fry's Electronics Shutting Down Operations; Victim Of COVID-19 Fiscal Woes

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.