There are many ways on how to do it, as discussed in this article. They include camouflaging your home, constructing walls, setting boobytraps, installing security cameras and floodlights, using motion sensors, keeping guard dogs, etc. Please refer to the article for more details.