If you want to block an entire instance, I think the only way is to run your own instance and add it to the blocked list, or join / signup on an instance that already blocks it, then browse lemmy from there.
Alternatively, if you want to block just certain subs from an instance, if you have not "joined" the sub, you should see a "block" button in the sidebar.