Online content is habit-forming because it follows what I call the "hook framework," a four-step user flow composed of a trigger, action, reward, and investment. To end my own bad habit of spending too much time wandering the Web, I had to break the hook.