When someone follows you too closely, you should:

The best way to handle a tailgater is to change lanes and let them pass you. Speeding up may cause them to tailgate you at a higher speed, only increasing the danger. Never ride on the shoulder of a road because drivers will never expect you to be there and may leave the road suddenly.
DMV Writen Test Logo