I want to have a family, but I don't want to marry a girl only to be locked in on money but risk her running off with some fling and the kid isn't mine.

Wouldn't it be better to just stop using condoms with the hot girls, deny being the father but consent to a DNA test so I only have to pay child support and engage if the kid is actually mine? That way I have virtually no monetary and personal investment into the girl other than what I put in on a voluntary and ongoing basis.

Seems like this is the right play, but I'm wondering has anyone done this intentionally? How did it work out?

EDIT: so the plan is just to have the kids out of wedlock and have the woman prove I'm the father before committing any financial resources to child. DNA tests can occur during pregnancy.