I don't know if your trying to do it through your browser or with a script but
I found this extention in firefox I'm using because I don't want to send any referers from this site to any external sites so the things this site offers for free gets taken down because the vendor checks their referers. Its called No-Referrer at
https://addons.mozilla.org/en-US/firefox/addon/1999 .At first I though you had to enter the URL of the site you didn't want to send a reffer from but if you do that it Just blocks any referers being sent to only that site, not from that site to an external. So I just set it to block 3rd Party requests only. That way only referrals are sent if it is coming from the site itself.