Limit Access to Buildings
Seal all holes along the outside of attics and eaves and any gaps in the roof, however small, to restrict opportunities for the rodents to enter. Squirrels can squeeze through openings with a diameter of no more than 1 1/2 inches, but even smaller holes should also be closed off. Discourage squirrels from gnawing holes to make them wider by covering them with metal flashing, hardware cloth and copper wool. Block chimneys if squirrels can enter through them.
Trapping
A one-way door trap that is triggered as the animal enters to take the bait is a good way of capturing a squirrel without harming it. The trap should be placed near the hole where you presume the squirrel is entering. Most jurisdictions have strict laws about using traps, particularly regarding how often they must be checked so the trapped animal doesn't suffer. Most localities also prohibit relocating trapped animals and require animal control to dispose of the animals.
Squirrel Repellents
Limit nuisance squirrels around gardens by spraying squirrel repellent around flowers and soil. A motion detector scarecrow that reacts by shooting water at the rodent could also be beneficial. Many bird feeders have devices to prevent squirrels from using them. Some emit a sound that is intolerable to squirrels while others provide a quick, sharp electrical shock.
Metal Collars
Prevent squirrels from damaging utility lines, which they often chew through, by encircling utility poles with 2-foot-wide metal collars fixed 6 feet off the ground. You can also attach the metal to trees using encircling wire. Cut plastic pipe through the middle and open it so you can place it over non-electrified utility lines. The pipe will rotate as squirrels attempt to travel over it, forcing them to fall. Don't attempt to cover electrical power lines yourself.
Cut Tree Branches
Trim any tree limbs or shrubbery within 8 feet of a building to make it more difficult for squirrels to gain access to the roof.