The authorities of Facebook will stop allowing advertisers to target people under 18 on its platforms based on their interests or their activity on other sites, it said on Tuesday.

The change means advertisers will soon be able to target under-18s only by age, gender, or location on Facebook, its Messenger service and its photo-sharing platform Instagram.

In a blog post, Instagram said it was making the change because it agreed with youth advocates that young people might not be equipped to make decisions about targeting.

A Facebook spokesperson said there would be no changes to the user data the company collects.

Instagram users under 16 years old will also start to be defaulted into having a private account when they join the platform, the company said, in an effort to stop unwanted contact from adults. They will still be given the option, however, to switch to a public account and current users can keep their account public.

Facebook’s approach to younger users has been in the spotlight after US lawmakers and attorneys general slammed its leaked plans to launch a version of Instagram for children under 13. Earlier this year, a group of more than 40 state attorneys general wrote to CEO Mark Zuckerberg asking him to ditch the idea.

The company said on Tuesday it was working on an Instagram experience for tweens. It has been said the idea of a youth-focused app is to provide parents greater transparency and controls on what younger children who want to access Instagram are doing.

Several major social media companies have also rolled out versions of their apps for younger audiences, from Facebook’s Messenger Kids to Alphabet Inc-owned YouTube Kids.