And there's a big fine for anyone who breaks the rules.
The new restrictions are being brought in after a fire at a Beijing cybercafé in June killed 25 people. Most were students trapped inside.
Cafes will only be allowed to open during certain hours and they must not lock their doors and windows while they are open, for safety.
Gaming worry
But the Chinese authorities are also worried about what people are able to see and read about other people, opinions and cultures as well as gambling on the internet.
They don't even like people playing computer games, even though it's getting more popular amongst young people there.