Smart Referer :: Add-ons for Firefoxhttps://addons.mozilla.org/en-us/firefox/addon/smart-referer/
Send referers only when staying on the same domain.
You can whitelist domains with wildcards and configure other things, look in the preferences page of the addon in the addon manager.