How to set up barriers that stop hackers