A device which works to overcome temptation or craving is to borrow from computer language the ultimate intervention: Ctrl+Alt+Del.
The next time you are tempted beyond your willingness to enjoy the natural experience of temptation hit your Ctrl+Alt+Del button. What this means is to deliberately choose the action which will effect you desired change. If you are viewing pornography on the computer, hit the Ctrl+Alt+Del buttons which will have immediate and irreversible outcomes of shutting down the sites you are viewing. You may also hit your power button on the CPU and shut down your computer completely.
This is also where you choose to phone a friend, sponsor, or mentor. If its efficient on the computer it will work with you. You also have the option of hitting the Esc button. Some situations can only be overcome by just walking away (escaping).