Forums / WEB Development
TL;DR · summary of 10 replies
-working solution found by doriann was to use SSL connection for the request. -no other solutions were provided or confirmed as working without curl.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Sort replies:
Oldest
Top voted
Newest
DO
HA
4 participants
DO
How to send fake referer whitout curl? I use curl to grab data from the site fank.mobi At the time of downloading files hotlink the system does not let you download the file because the referer sent. I do not want to save the files on my server. Anyone have an idea how to download without sending the referer?
could try:
header("Referrer: somesite.con");
DO
not work friend
something else wrote:
could try:
header("Referrer: somesite.con");
not work friend
I've tried opening the link using target _blank did not work.
I've tried to open the link in the header using php eg:
header ("Referer: http:// site2.com");
header ("Location: http:// site2.com");
and did not work.
I've tried opening the link using javascript document.location.href = "site2.com"; and did not work
Could anyone help me? Thank you in advance for your help.
HA
Hammad
Developer · 89 posts
13 years ago
#4
use meta refresh that will not send referer info
DO
not working friend
Hammad wrote:
use meta refresh that will not send referer info
Not worlinkg for me friend, in localhost work fine, in server not working
GumSlone
Administrator Principal · 1,690 posts
13 years ago
#6
you cant send referred with header(); it would never worked
but you can send it with curl like this:
curl_setopt($ch, CURLOPT_REFERER, 'http://www.example.com/1');
but you also have to read the file with curl
DO
GumSlone wrote:
you cant send referred with header(); it would never worked
but you can send it with curl like this:
curl_setopt($ch, CURLOPT_REFERER, 'http://www.example.com/1');
but you also have to read the file with curl
using curl works perfectly. But I do not want to use curl by overloading the server. Is there any solution without using curl? Thanks for responding.
DO
DO
not replyies?
not replyies? ....
GumSlone
Administrator Principal · 1,690 posts
13 years ago
#10
its not possible, only with curl
DO
its possible
GumSlone wrote:
its not possible, only with curl
im resolve this using ssl, its possible not send referrer using ssl conection in site.