Hang strips of foil, fabric or commercially available bird netting hung from the eaves to deter the birds. Woodpeckers can be very persistent and are not easily driven from their territories or selected pecking sites. For this reason, visual or sound types of repellents should be employed as soon as the problem is identified and before territories are well established. Create a physical barrier between the woodpecker and the house. If scare tactics don't work, create a physical barrier by screening the drumming site with hardware cloth, sheet metal, or nylon bird netting.
Netting is one of the most effective methods of excluding woodpeckers.
Give them something else to peck on. It might work to provide an alternative drumming site by nailing two boards together at just one end and hanging on a secure surface. If you have dead trees in your yard, you might think removing them and the insects they harbor will solve your woodpecker problems. Again, the opposite may be true. Cutting down dead and decaying trees deprives the birds of nesting, drumming and food sites and may force them to take a look at your house.