Three violent attacks at Polish schools this week were driven by the "glorification of violence" online, Prime Minister Donald Tusk said.
The attacks have left one woman dead and others injured, including children.
"These are very often spontaneous actions inspired by online activity," Tusk said on Sunday, during a crisis meeting with security services.
Police have arrested 117 people across the country for possession knives or other weapons, or for threatening to attack schools or fellow students, after searching tens of thousands of schools.