You can’t make an unbreakable system, or, at least, it’s very difficult.
The problem is that a big percentage of the population is ok with this, and in that case it doesn’t matter if it’s illegal or not. There is a reason why, even if allowed, governments didn’t do these kind of things: population didn’t want it.