The algos don't need to deny any or every part of a gun, but the most critical part must not be printable and it'll already be effective.
I'm neither very experienced with firearms nor printing, maybe such a thing doesn't exist for a gun, but I suspect there's a few very important pieces that need to be printed a certain way or the firearm falls apart or is at least a lot less useful.
All that said, I'm generally against such limiting mechanism in any printer or compiler. Try close sourcing all compilers so they can't create malware? Forget it.