The move is intended to prevent violent crime but is also raising concerns about the privacy of innocent people.