How do I stop a cop from searching me?
Never agree to a search.
Always say no, even if it looks ridiculous at the time, you preserve your right to litigate the search.
Never resist with violence or force an officer who insists on searching.
Ajudge will suppress anything obtained by the police if the search was unlawful.