How do you go about buying a car on the other side of the country?

I'm looking at a couple cars on craigslist that are about 1800+ miles away from me but I was just wondering how you guys go about making the purchase while protecting yourself from fraud?

I figured I'd pay a couple hundred bucks for an inspection and if everything goes well, I'd make the purchase and then pay a shipping company to get the car out here.

How do you guys go about making the purchase and getting the title? I can't seem to find any straight answers online other than "fly out there" but that's not really in the cards right now. There has to be some sort of way to do it to protect yourself from someone just taking your money but I'm not sure of what the cheapest and safest route is for that.