When my cat bit me once, I bit her back, hard enough to hurt a bit.
She was, well, shocked, and has never bit me again.
Yep. I've bitten a few cats. It DOES work.
Snap their nose with your fingers. They'll not only never forget it....they'll step aside when you come into a room.
Squirting with water does the trick too.