A Learning Guard System protects the attention of students in a classroom by requiring the student to download an ‘app’ from the Learning Guard website. During installation the ‘app’ requires the student to provide their name and a list of emergency contacts which are stored in the memory of the smart phone and by the Learning Guard cloud database. When a student enters a classroom doorway cube transmitter mounted thereon interacts with the ‘app in the smart phone to thereby acquire the smart phone ID and turn off the smart phone functionality, including voice, text communication, Internet access, playing music and videos. This prevent communication of the student with others, excepting emergency contacts both public and private. The cube transmitter communicates the smart phone ID to a base station linked to the Learning Guard cloud database, which creates a database of students in the classroom. When the student exits the classroom through the doorway, all of the previously extant smart phone functionalities are turned on.