You could try covering your ear and saying "Please don't deafen me" -- that's what I do -- but it might not work.

Or get her to say something instead. Pick one of her favorite things and say it and maybe she'll repeat it and stop squawking. "Pepper" usually works for Clyde, or today his favorite word is "peekaboo."
As for the attacking -- Clyde only nibbles my ear if I'm not paying enough attention to him. He does try to preen freckles and moles off my neck, but he isn't attacking when he does that. He's just preening. Thinks he's doing me a favor and get offended if I squeak. An attack is a whole different thing than preening, and he isn't trying to do damage. I let him sit on my shoulder as much as he wants, but he prefers my hand. The shoulder is for riding around the house. If I'm sitting still, he wants my hand.