Your porn habit should be easy enough to quit. Figure out when and how it is entering your life and take steps to avoid it. If you have a stash of porn, get rid of it. If you have a subscription to porn, cancel it. If you see it on your computer in the privacy of your bedroom, etc., there is probably a software solution or, if that doesn’t work, move your computer to a more public place in the house. If you see it on your smartphone, switch to a dumb phone that only allows you to talk and text.
Your masturbation habit is a behavior that took a while to learn, deliberate repetition, and will probably take your body’s muscle memory many years to forget once you stop. The easiest way to avoid sin is to avoid the near occasion of sin. If you are in the habit of touching parts of your body inappropriately at times, it is going to be a lot easier to break that habit if, as far as possible, you stop touching anywhere near those areas altogether and, when it is absolutely necessary to touch those areas, do so with your least-dominant hand, i.e., with your left hand if you are right-handed or your right hand if your are left handed. For instance, if you are in the habit of touching your genitals inappropriately at times and you are used to urinating standing up touching your genitals, develop the new habit of only urinating while sitting on a toilet not touching your genitals, as that should minimize any necessary hand-genital contact. If you like to put your hands in your front pants pockets, stop. If you are doing it to warm your hands, find some other way, such as; cross your arms or wear gloves.
The thread was closed before I could respond to BoomBoomMancini, who said, “This seems…psychotic. Are you going to next advise he avoid washing his crotch in the shower?

” To BoomBoom I would say, I would not advise avoiding basic hygiene but I would advise washing that area with the less-dominant hand and not to linger, touching that area only as long as necessary.