There’s no specific, medical treatment for boredom. However, there are tons of solutions if you’re experiencing boredom. For example, you may want to consider trying some new hobbies or other new diversional activities. Joining a club can be a good way to thwart your boredom. Reading clubs, hobby groups, or exercise groups are all great places to start. Joining a community group that organizes activities and outings is another good idea.
This example leads to another key aspect of boredom. As Eastwood, Frischen, Fenske, and Smilek point out, bored people become aware of their difficulty concentrating. As a result, bored people often try to amuse themselves by daydreaming and letting their mind wander. Interestingly, while mind wandering helps people to keep their minds occupied, studies suggest that the more your mind wanders, the more bored you feel. The idea is that you recognize that this daydreaming is meant to occupy your mind, and so you realize that the situation is boring.

Finally, a real problem caused by boredom is that it leads you to dislike the things that are the object of boredom. In my senior year of high school, for example, I was forced to read Moby Dick. I struggled to get interested in it and spent long hours staring at the pages trying to lose myself in it. To this day, I really do not like Moby Dick. The negative feelings that came with the boredom have stuck to the book.

Boredom is a universal experience. Almost everyone suffers from it in the course of their lives. Existing survey estimates show that between 30 percent and 90 percent of American adults experience boredom at some point in their daily lives, as do 91 percent to 98 percent of youth (Chin et al., 2017). Men are generally more bored than women. There is also a positive link between very low educational attainment and boredom.
“Alcohol makes other people less tedious, and food less bland, and can help provide what the Greeks called entheos, or the slight buzz of inspiration when reading or writing. The only worthwhile miracle in the New Testament—the transmutation of water into wine during the wedding at Cana—is a tribute to the persistence of Hellenism in an otherwise austere Judaea. The same applies to the seder at Passover, which is obviously modeled on the Platonic symposium: questions are asked (especially of the young) while wine is circulated. No better form of sodality has ever been devised: at Oxford one was positively expected to take wine during tutorials. The tongue must be untied. It's not a coincidence that Omar Khayyam, rebuking and ridiculing the stone-faced Iranian mullahs of his time, pointed to the value of the grape as a mockery of their joyless and sterile regime. Visiting today's Iran, I was delighted to find that citizens made a point of defying the clerical ban on booze, keeping it in their homes for visitors even if they didn't particularly take to it themselves, and bootlegging it with great brio and ingenuity. These small revolutions affirm the human.”

There are three types of boredom, all of which involve problems of engagement of attention. These include times when we are prevented from engaging in wanted activity, when we are forced to engage in unwanted activity, or when we are simply unable for some other reason to maintain engagement in an activity.[13] Boredom proneness is a tendency to experience boredom of all types. This is typically assessed by the Boredom Proneness Scale.[14] Recent research has found that boredom proneness is clearly and consistently associated with failures of attention.[15] Boredom and its proneness are both theoretically and empirically linked to depression and similar symptoms.[16][17][18] Nonetheless, boredom proneness has been found to be as strongly correlated with attentional lapses as with depression.[16] Although boredom is often viewed as a trivial and mild irritant, proneness to boredom has been linked to a very diverse range of possible psychological, physical, educational, and social problems.[19]

In contexts where one is confined, spatially or otherwise, boredom may be met with various religious activities, not because religion would want to associate itself with tedium, but rather, partly because boredom may be taken as the essential human condition, to which God, wisdom, or morality are the ultimate answers. Many existentialist philosophers, like Arthur Schopenhauer, espouse this view. This view of religiosity among boredom does affect how often people are bored. People who had a higher religiosity while performing boring task, reported less boredom than people of less religiosity. People performing the meaningless task had to search less for meaning.[24]
Some individuals are more likely to be bored than others. People with a strong need for novelty, excitement, and variety are at risk of boredom. These sensation seekers (e.g., skydivers) are likely to find that the world moves too slowly. The need for external stimulation may explain why extroverts tend to be particularly prone to boredom. Novelty seeking and risk-taking is the way that these people self-medicate to cure their boredom. 
Absent-mindedness is where a person shows inattentive or forgetful behaviour.[20] Absent-mindedness is a mental condition in which the subject experiences low levels of attention and frequent distraction. Absent-mindedness is not a diagnosed condition but rather a symptom of boredom and sleepiness which people experience in their daily lives. When suffering from absent-mindedness, people tend to show signs of memory lapse and weak recollection of recently occurring events. This can usually be a result of a variety of other conditions often diagnosed by clinicians such as attention deficit hyperactivity disorder and depression. In addition to absent-mindedness leading to an array of consequences affecting daily life, it can have as more severe, long-term problems.
Erich Fromm and other thinkers of critical theory speak of boredom as a common psychological response to industrial society, where people are required to engage in alienated labor. According to Fromm, boredom is "perhaps the most important source of aggression and destructiveness today." For Fromm, the search for thrills and novelty that characterizes consumer culture are not solutions to boredom, but mere distractions from boredom which, he argues, continues unconsciously.[29] Above and beyond taste and character, the universal case of boredom consists in any instance of waiting, as Heidegger noted, such as in line, for someone else to arrive or finish a task, or while one is travelling somewhere. The automobile requires fast reflexes, making its operator busy and hence, perhaps for other reasons as well, making the ride more tedious despite being over sooner.
Boredom also has its benefits. It is important to see boredom as a “call to action” (Svendsen, 1999). Nietzsche suggested that men of rare sensibility value boredom as an impetus to achievement. Boredom can be a catalyst for action. It can provide an opportunity for thought and reflection. It can also be a sign that a task is a waste of time—and thus not worth continuing.