Not quite so relevant to NZ but since I'm guessing many HNers are wondering what happens at the US border:<p><a href="https://www.eff.org/wp/defending-privacy-us-border-guide-travelers-carrying-digital-devices" rel="nofollow">https://www.eff.org/wp/defending-privacy-us-border-guide-tra...</a><p>I worry about this, since I travel frequently. Then again, I also worry about plane crashes. I think both are probably irrational, but having plans is what keeps the boogeyman away at night, so here's mine:<p>1) Remain polite and professional.<p>2) Decline to consent to any search. Comply with officers' demands that they tell me I'm legally required to comply with. Ask for that demand to be produced in writing. I'm willing to wait for a supervisor while they figure out how to do that, even if it means I miss my flight. I will get a receipt and/or report number and/or some other official written record of the incident if any seizure, including seizure of information, takes place.<p>3) Immediately after reaching my destination, file written grievances with any and all responsible agencies. They must have a spreadsheet tracking passenger complaints somewhere. Let's increment that while having someone commit, on paper, to a version of events of what happened and a legal rationale to why that was justified. This will only cost me a bit of time and money, and I have lots of time and money, but it has heavily asymmetric payoff in the event of a lawsuit or PR battle.<p>But honestly? Mathematically, I'm much, much more at risk of getting mugged in Chicago on my way home from the airport than getting held up by Customs. I don't exactly live in fear of muggings but I take sensible precautions like e.g. backing up my data, making sure that I can turn a factory-new laptop into a working dev environment within a day, and carrying insurance. I'm pretty sure most of these still work even if I happen to lose a laptop to Customs rather than to a mugger.