copy() and hotlinking
Moderator: General Moderators
copy() and hotlinking
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
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.
2. You cannot set the referrer using the copy function.
3. You can set the referrer using curl requests.