Store all of your developer infrastructure (developer workstations, TFS infrastructure, etc) in an isolated building. This building should have no internet access whatsoever.
Post security guards outside the building. Armed is preferable, but not strictly necessary.
Each person entering the building should be stopped by the security guards and forced to surrender all personal effects (cell phones, cameras, tape recorders, thumb drives, etc). Nothing should be allowed to come into this room or exit the room. This includes things like eyeglasses and clothing, since they could have covert recording devices embedded in them.
All people entering or exiting the room are thoroughly searched, both upon entry and exit from the room. Ideally they would be cavity searched and x-rayed, although finding security guards comfortable with performing cavity searches could be challenging, and they would almost certainly command a higher salary.
This will prevent your employees from:
- emailing code to themselves
- taking pictures of the code on their screen
- writing code down on sheets of paper
- dictating the code into a recording device
- copying code to a thumb drive and smuggling it out of the room
Of course, this doesn’t account for the possibility that an employee has an eidetic memory. If that’s the case and you find out, you’ll have no choice but to have them killed upon their departure from the company.
Please note that the ‘having former employees killed’ portion is satire. I do not actually recommend having people killed. That is illegal and immoral.
1
solved How can i minimize the source code theft in visual studio 2010/TFS