A good way to learn about how to keep hackers out is to learn how they get in. Buying books and reading stuff online isn't illegal but applying it is. Just like how knowing how to kill some one isn't...