I agree with legionreturns... There are 2 sides to tailgating...
I absolutely hate people that drive in the outside lane on motorways when the other lanes are free and they are not overtaking. This lane is for overtaking, once you have passed a car you should move back over to the other available lanes, this does not mean if there is a car 1 mile in front in the middle lane that you should stay in the outside lane until you have passed him - as there will no doubt be someone slightly faster than you wanting to get passed - over take when you get to that car in a miles time!!
Tailgating is my last resort of asking these type of drivers to get in the correct lane, as I do not like undertaking - as this is both illegal and even more dangerous than tailgating. If someone hasn't moved back into the correct lane after a minute or so (you should be looking in your mirrors more often than this) I tend to flash once instead of tailgating and if people are actually using their mirrors they soon realise that they should move over, I do not see this as agressive, more as a polite reminder that they are in the wrong lane, my last resort is tailgating but is not practised that often.
Tailgating is more of a problem for me when I am on single track roads, or in traffic spots where there is no opportunity to switch lanes and is often made worse when the tailgator has his fog lights on. These kind of drivers are just as annoying and need to learn some road etiquette. Their purpose for tailgating is simply due to a few things, 1- they do not understand the 2 second "safe breaking" rule, 2- they are aggressive drivers, 3- they are most probably driving a white van which for some reason they think gives them a right to do such a thing, 4 - they are in a rush and think that by driving close they will somehow make traffic move magically out of the way for them to pass.
So to sum up:
If someone is tailgating you - have a look at your position in the road / motorway - are you actually overtaking anyone? Should you be in another lane?
If you are not able to move over or they are doing it in an aggressive manor, remember you are the better driver, and that one day these people will get whats coming to them, once they have a nasty crash - it will probably be the last time they do it.
I dont recommend using the handbreak method, as you will cause an accident, tapping the break lights will probably cause the same as the tailgator may think your doing it to get him off your back when you could be pressing the breaks for real!!
Well I'm glad I got that off my chest.