You can protect yourself from piracy by making quality content that people genuinely want to support. You do more good by making it convenient, easy, and affordable to customers than anything else, and having an awesome game makes it even easier to hand over cash.
Convenience and affordability is where a lot of people fail.
Adobe Photoshop is the best example in that even if it was only $50 (instead of $2000), the market size is limited by those who want edit photos.
Adobe's answer to this was to make a student version and sell it for 15%+/- of the original price and allow those that want to edit photos but cannot afford the software still buy it for a lower price.
They further versioned by releasing Light Room.
They realized that they needed to make it affordable, but kept the DRMs in place and worked hard to make PS harder to copy. I'm sure it is still possible, but at $400 (student version) you get a lot of value and it becomes easier than pirating.
CS5 didn't even require a crack, you just have install the trial version with a fake serial and edit your hosts file to stop it calling home.
I'm pretty much OK with CD-keys, and I tolerate Steam because it hasn't had serious problems yet, but anything else I tend to distrust.
And offline is way better than it used to be. Is it still problematic?
Is there something else they could have done?
Edit: a lot of game makers are adopting this sort of model as an intentional business practice by going "free to play". Having a big installed base is great if per user costs are low (which they can be if everything is digital) and can improve average perceived value for multiplayer games, all of which can make it easier to pull in more revenue from a small subset of players who voluntarily choose to pay for certain things than to attempt to charge everyone a flat fee.
OnLive does precisely this. It's effectively perfect as far as copy-protection goes; but it's also seamless to the user and (provided you have a decent pipe) actually has a few benefits as things like download time, system specs, or syncing saves are no longer an issue.
That's the point. To "protect" themselves, they hurt legitimate consumers.
It's about ownership.
If game companies need to hurt their customers in order to "protect" what they think they're selling, then what are the customers buying after all?
The companies think the customers want to buy a copy of the game, so it logically follows that thus, making copies of the game must be restricted. But the customers obviously are buying something else if they feel hurt even after they've rightfully received their copy and even go lengths to "fix" the situation by turning to pirated versions.
It is my guess that what customers want is the abstract concept of ownership.
People buy games and music and movies because they think those games and music are good, and they admire them, thus they want to own these products.
Anecdotally, most of what I own is because I wanted to specifically own it. I own movies on physical DVD disks that I still downloaded from Piratebay for viewing after I bought the DVD because they have better DVD rips and it takes less time to download than to rip myself.
Whatever games I bought and my friends bought when we were teenagers were the best ones that we thought we wanted to own. We wanted to have the game, we wanted to own the game to feel good about owning something we liked. All my game boxes were like that. Monkey Islands. F1GP. Eye of the Beholder. Obtaining a pirate copy wouldn't have satisfied my need to own those titles. Me and my friends pirated stuff that we didn't feel for, and if we hadn't been able to pirate them we wouldn't have bought it.
We didn't buy games to get a copy, we bought games for ownership, we wanted to own them and cherish them. And that is exactly what DRM games don't want to give you: ownership.
As far as I can tell, there's absolutely no way around it except by having thin clients and running everything off the cloud. As long as the actual machine where the content is being run off is in the hands of the client, it can always be hacked, either through software or hardware. But things like streaming video and Louis CK are showing that people are willing to pay for content, as long as it's convenient enough and cheap enough.