Although the situation can be serious, there are ways to solve this problem. Before doing anything else, you have to accept this fact and not blame yourself. This situation can easily lead to self-hatred.
Next time you want to watch pornographic content, ask yourself what is really behind this urge. Boredom, hunger or loneliness can drag you into watching porn to fill up those holes in your time. This realization can help you understand whether you have an addiction or not.
In order to obtain successful treatment, you have to limit your access to all pornographic content. If you can't prevent yourself from watching, try taking a brief walk or chatting with a family member to distract yourself.
If these small distractions are not helpful in stopping you from watching or consuming pornographic content, you might need professional help. You might consult a therapist, for starters.
To sum up, early diagnosis and self-recognition can be very helpful during the treatment. When the actual reason behind the addiction is revealed, the individuals are transferred to psychotherapy, medical treatment, sexual therapy or couples therapy according to their needs.