Soldato
No, this is a terrible idea.What jpaul said is totally sensible. Tapping the brakes does not mean, braking. A quick tap will make the brake light come on and warn the tailgater to back off. That is much safer than suddenly braking for real.
If someone is tailgating you just lift off and coast to slow down. If they've got no reaction time window in front of them, give yourself a much bigger one in front of you. This way the tailgater can either get on with his tailgating whilst you have adequate space in front to react smoothly to any changes, or they can overtake you. Both ways allow you to get on with your day without further stress.