A chrome extension I use called stay focus has an option to require typing a long document exactly in order to disable it. Unfortunately it's trivial for even a mildly technical person to figure out how to get around it, so it's become useless for self control.