Though mostly I think these governments are just aligning with the wishes of the US, coupled with the knowledge that they can afford to be cavalier with the rights of citizens who might have attended, and… they want to avoid the complexity of policing this.
Today, 50% of the population are under 18 & 64% of adults say they do not feel it is safe to criticise Hamas.
So enough of your nonsense, though frankly, even if a large majority had voted Hamas in a recent election, that would still leave a lot of people who are against Hamas.
Hamas are not their elected representatives. They are a brutal dictatorship who rule Gaza with violence and fear, including slaughter & rape of their own.
France bans all pro-Palestinian demonstrations (www.bbc.com)