Page 1 of 1
copy() and hotlinking
Posted: Thu Feb 14, 2008 1:53 pm
by sd99
Newbie here! I have a script that uses copy() with http addresses to grab files. However it seems to fail on sites that have hotlinking protection. Is there any way around this? Can I fake the referral somehow? Cheers
Re: copy() and hotlinking
Posted: Fri Feb 15, 2008 12:15 am
by Benjamin
1. If a site has hotlink protection it's for a reason. You should contact them and receive permission to copy the content. They may provide you with a feed of some sort.
2. You cannot set the referrer using the copy function.
3. You can set the referrer using curl requests.