It’s virtually impossible to prevent people from doing it, yes. It’s extremely easy to punish people who are doing it. Do you know what charges Aaron Swartz was facing, and what he was aiming to do that got him those charges?
Edit: Actually, these people are a little bit better example, since Aaron Swartz did commit additional crimes in support of the original goal of distributing material from a web site.