Is it possible to block backlinks to your Discourse site?

You can’t block websites from linking to you. Even if you banned IP ranges it won’t do much. Many of these spam links are scraped directly from search engines.