Facebook has agreed to change its paid advertising platform as part of a wide-ranging settlement to prevent discriminatory and "harmful" practices, the company and U.S. civil rights groups said on Tuesday.

Under the agreement, Facebook will create a new advertising portal for ads linked to housing, employment and credit ads that will limit targeting options for those ads across all of its services, including Instagram and Messenger, the rights groups said in a joint statement.

Advertisers on the portal, which will be separate from the system used to advertise other sets of services, will not be able to target ads by age, gender, cultural affinity or zip code, the statement said.