Pharmacology

Naltrexone is used for which of the following function in opioid addiction?