Whenever they get too close, tap your brake pedal lightly enough for your brake lights to go on, but not enough to actually apply the brake and slow down.
I just downshift a gear or two and let off the gas gradually … accelerate a bit … let off. The varying distance without brake lights generally creeps most tailgaters out, and causes them to finish their proctological exam.