Austria said Wednesday it was considering a law to make it mandatory for big internet platforms to register their users and deprive those behind hate posts of anonymity.
"Unfortunately there have been an increasing number of clear violations, denigrations and humiliations online in the past under the cover of anonymity.
That's why we need a framework for more responsibility online," Chancellor Sebastian Kurz wrote on Twitter.
The new law would take effect in 2020 and would make it mandatory for platforms such as Facebook, Twitter and Instagram to register their users, said Gernot Bluemel, minister in charge of EU affairs, art, culture and media.
It would be up to the platforms themselves to decide the form of registration, but authorities would be able to access users' identities in case of hate postings or on suspicion of other laws being broken, he said.
"The online space should not be a space without laws," Bluemel told reporters after a weekly cabinet meeting, adding that Austria aimed to set a precedent for other countries in the matter.
French President Emmanuel Macron earlier this year caused controversy by suggesting a ban on anonymous postings on social media.
In Austria, the law would have to be approved MPs as well as the European Commission to make sure it is in line with EU guidelines that stipulate, for example, that member states cannot regulate a platform provider more strictly than its country of origin.
The proposed law would only apply to internet platforms that have a certain reach -- more than 100,000 users or 500,000 euros ($430,000) annual turnover in Austria -- as well as online media that receive more than 50,000 euros in state aid, Bluemel said.
Austrian opposition parties have criticised the proposal, saying it restricts online freedom and gives even more user data to online giants, such as Facebook, which is already under fire over how it handles such information.