Umediafire had the same workaround on it by using adfly's anon referral link to it, we could just always figure out using a similar method on how adfly referral links can go through MF.
I'm not sure you understand me. Your server hosting the script has to visit the mediafire page to get the direct link (this process will get you banned) regardless who you're http referrer is.
EDIT:
Sorry it wont get you banned. The lack of automated response to ReCaptcha will get the script banned after repeated attempts.
jdownloader does what bluefrog suggests it forwards the captcha to the user once it hits that download limit. Which resets the count for a while.Oh yeah. Maybe like said before we'll need some workaround on that. I'd want to see how jdownloader scripts work with captcha on MF, since it can automate DL requests too.
Meh, you can always forward the recaptcha request to the user or just use an anti captcha service.