It works by blocking the effects of opioids, especially the euphoric and rewarding feeling that makes you want to use them. It also may block the euphoric and rewarding feeling that may make you want to use alcohol. It will not produce any opioid-like effects or cause mental or physical dependence. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.