I've never had anything bother pumpkins much. I've seen bite marks on butternut, but it seemed like that wasn't muvh liked either by the mouse or squirrel that bit it because it was just one bite, not a big hole.Ooooo.....thinking about ordering some mesh produce bags to use with my cantaloupe, watermelons, and pumpkins on the vertical trellis.
I cannot spoken for melons, but think the rind would help protect them. I just haven't had success yet in growing them beyond a tiny green melon that was far from ripe - it didn't get chewed on by anything though either.