It does feel like there is an easy solution to this:
Have tests.
Supervise said tests to make sure people don't cheat.
That's how it worked when i was in university. Admittedly maybe that is easier in the sciences than humanities, but still, it seems doable. Cheating isn't a new phenomenon it just got cheaper and easier.