Protecting small birds from Magpies and sparrow hawks.

I have a hedge of fir trees that is used by small birds to nest. In recent years the magpies and other large birds are eating the young fledglings and we have seen a noticeable decrease in the small bird population. Is there a netting or any other device that will alllow the small birds to nest safely whilst preventing the aggressive, larger birds from killing the young birds? Obviously without harming the large predators.