You do realize don't you that often you cannot board a plane to specific countries without the airline confirming your status to enter? An example is my husband (or anyone entering America) has to apply online for a visa waver and show the airline he has done so before they give him his boarding pass. One time he forgot to do this and it was a rush to hop online apply and hop back in line for his boarding pass!
Australia also requires an eVisitor which is electronically stored authority on your passport to enter OZ as a tourist.
And as fairy floss explained on a previous post, the Iranian govt. takes their passports.
ETA: from what I can remember, when I entered Malaysia I did not to have prior authority connected to my passport, but I think we did have to buy a visa when we passed through immigration.