Glad you closed it out man!! Good job.
It's good you admitted this so you can be held accountable.
Focus what on what caused you to open that porn site. Were you bored? Sad? mad? whatever it is, focus on that emotion and find other ways to solve it!!