Magpies predating Robin bird box.

Help the last 3 years robins have nested in the Robin bird box and every year the Magpies have found the box and predates the fledglings. Is there a A nest box that would help prevent this happening or anything I set up to protect the box being attacked by Magpies.