You can make a homemade bird repellent spray. For that, make a solution of vinegar, water, and chili peppers. Mix crushed dried green or red chili peppers into the solution. Once you have made the solution, apply it to where woodpeckers usually peck.