With rigged tables, your self-discipline is the initial defense.
Later distractions can be introduced as learning gets worse. However, that's why has got religion, philosophy, and spiritual techniques. https://bookmarknap.com/story7577994/piano-online-lessons-the-important-difference-between-practice-and-playing