How secure is Discourse?

Wouldn’t prevent anons from downloading files prevent these kind of things ?