Here's a basic summary of what you can do for them:
grow your squash under row cover (secured at the bottom) (then you may have to hand pollinate the flowers)
wrap the stems in tin foil so the borers can't get to them
treat preventatively with diatomaceous earth and/ or neem oil (before the larvae get inside)
grow squashes like butternut that the borers don't like
If you see the little hole in the stem with sawdust like frass (droppings) below it, slit the stem there and dig the borer larvae out
Insecticides are not generally effective against the larvae, since they are inside the plant and protected. But you can inject Bt into the stem of the plant with a syringe.
Using Natural Insect Repellents
There are several natural insect repellents that often kill the moth of the Squash Vine Borer on contact, but also serves as a repellent by creating a bad taste for the critter and make it go someplace else to munch and lay eggs. Neem Oil Soap, Hot Pepper Wax, and Garlic Barrier all have this potential repellent capability when applied properly on the tops and the bottoms of leaves of the target plant at least two weeks before you expect the Moth to arrive, probably around the first of May. The repelling effect will last for several weeks to a month depending on the weather conditions, so you may wish to add another application every two weeks or so [url=https://yardener.com/YardenersPlantProblemSolver/DealingWithPestInsects/PestInsectsInTheVegetableGarden/SquashVineBorer/SolutionsforSquashVineBorer]solutions for squash vine borer[/url]
companion plant with repellant plantsÃ¢â‚¬â€catnip, tansy, radishes, nasturtiums, marigolds, beebalm, or mints.
Those are all the (organic) controls I know of -- if anyone knows of others please do add them!
In general, I think any one of these (except maybe keeping them the whole time under tightly secured row covers) is not going to be totally effective alone, but a couple different methods together might be sufficient.