Germans will only be able to buy adult eBooks between 10pm and 6am, after a new law.

Other such media have long been banned during the daytime, and real books that are violent or erotic are kept under the counter of bookstores. But a new ruling means that eBooks will be treated like films or TV, and so can only be sold during the night time window.

The 10pm to 6am window was originally instituted in a 2002 law — Jugendmedienschutz-Staatsvertrag, or Youth Media Protection Act — that was intended to restrict adult cinemas from showing films in the day. But many have pointed out that applying the rule on the internet, where products can be bought at all hours of the day, is impractical.

The change has been as part of a legal complaint around a German erotica eBook called Schlauchgelüste (Pantyhose Cravings), according to blog The Digital Reader, a memoir of a transgender person which has caused problems because it was readily available.

None of the sites selling selling such material are yet shutting down in the day, according to reports. But the law allows for people to be fined up to €500,000 if they are found to be selling the material.