How about mandatory DNA testing of the child at birth. Doesn’t the father have a right to know if he is the father?
That would stop fraud; so will be opposed
If the man’s sperm was used without his knowledge, then DNA testing wouldn’t help. It would just confirm it’s his kid.
Speaking of “before birth,” the condom issue pales in comparison-
CRISPR Baby Initiated Through Pre Conception Time Travel Tells All Part 2
https://www.youtube.com/watch?v=vtSyK0dt9s8&t=4928s