Does coffee grounds keep dogs away?

Good point. Training and positive reinforcement to stay out of certain areas might be more reliable than using scents.