Lockfiles are a more standard and probably better way to do this. (People do need to pay more attention to lockfile diffs.)
(And then for the ultimate level of "slow your project to a crawl, but hey at least it's really secure", you can only allow versions that pass an internal security review to be added to the proxy and disable automatic fetching of un-cached versions. Ain't no sneaky code getting in unawares there!)