If you're going to cheat, expect to be caught. If your search for sex involves putting any personal information online, definitely expect to be caught. If you don't want to be caught, be careful, use pseudonyms, and protect yourself from tracking. Or just ask for a divorce.
There is a third option which is don't cheat. I've never done it but my last long term relationship ended with her doing it, things hadn't been good for a while. Ironically a year out I think her cheating made things easier for me (knowing there was zero way back makes a clean break simpler). I'd never cheat on anyone, I'd end things first no matter the circumstances.
>If you're going to cheat
Given that you are going to cheat, no, "don't cheat" is not an option.