What’s a non-vulgar alternative for “covering one’s ***”? [duplicate]

cover one's back
Foresee and avoid the possibility of attack or criticism.
‘never take chances, always cover your back’

Oxford Dictionaries

In legalese, the expression risk mitigation is heard

A systematic reduction in the extent of exposure to a risk and/or the likelihood of its occurrence. Also called risk reduction.
Business Dictionary

To bulletproof your contract aka a rock solid contract aka Terms and Conditions

Source: Bulletproof Terms for Every Contract

If you bulletproof something, you make it resistant to failure.
We have to bulletproof this program before we let the users at it; check every input, catch every possible flaw … it must not fail in use. Wiktionary


Hedge

(hedge, v., def 2)
limit or qualify something by conditions or exceptions. Experts usually hedge their predictions, just in case

Oxford American Dictionary