Optimal Location of Security Devices