Unstoppable Domains โ€” Get your daily AI drops report

Referrer

SpaceshipSpaceship
Watch

Ferman

Established Member
Impact
19
Hi,

I need a code:

code will open the address written on the first box and send the url written on the second box as a referrer to the visited website

Could you help me please,

Regards,
Ferman
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
could someone help me please?
 
0
•••
Why do you want to do that? Just curious. :)

And do you only want it to send a request to the url that is in the "first box" with the fake referrer? Or do you also need to get the content of the page you sent the request to or?
 
0
•••
I want to get the content without having to visit that site

flashget and some other download managers send the referrer you write, to website you want to download a file from
i need a script which does the same thing, send what you write as referrer to the visited website and grab the file

i have sent you a pm with an example code, it gives error on php4, could you check it please?
 
0
•••
Any suggestions?
 
0
•••
You can't do this from a webpage because the browser sends the referring page automatically. You can't change that. This could however, be made as a stand alone program like it is with flashget and other downloaders.
 
0
•••
if your using a unix server you might be able to use system binary wget, you can set custom referes on this

for example

wget http://blah.com/file.zip --referer=http://www.google.com
 
0
•••
That would be a valid solution using linux commands, but I think he wants to make this a browsable thing.
 
0
•••
It could be done from a web page, at least the changing of the referring page and even the user agent. They could be set to the ones requested via a form on a web page just like they are wanting. You'd just have to make the form lie a little, just to the user though. ;)
 
0
•••
Ferman said:
Hi,

I need a code:

code will open the address written on the first box and send the url written on the second box as a referrer to the visited website

Could you help me please,

Regards,
Ferman
unless you are trying to run a service for falsifying referrers, you can do it right from the ui in firefox. it is a plugin and works well.

-Steve
 
0
•••
Just a demonstration script here http://speedycode.com to show the possibilities. Enter a URL in the URL field for a domain that you have access to its log files and, then enter your desired referrer and user agent and click submit. Then check your log files to see if it's showing the referrer and user agent you entered.
 
Last edited:
0
•••
here is an example code, but it does not work on php4.x , works better on php5
if you have a php5 hosting could you let me test it please ?

PHP:
<html> 
  <head> 
    <title>Test</title> 
  </head> 
  <body> 
    <form method="get" action="test.php"> 
      Site: <input type="text" name="site" value="" /> 
      <br /> 
      Referer: <input type="text" name="ref" value="" /> 
      <br /> 
      <input type="submit" /> 
    </form> 
    <?php 
      if(!empty($_GET['site']) && !empty($_GET['ref'])) 
      { 
        echo '<hr>Result: '; 

        $opts = array('http'=>array('method'=>'GET','header'=>"Referer: {$_GET['ref']}\r\n")); 
        $context = stream_context_create($opts); 

        $page = file_get_contents($_GET['site'],FALSE,$context); 
        echo htmlentities($page); 
      } 
    ?> 
  </body> 
</html>
 
0
•••
If you use fopen and fread in place of file_get_contents it will probably work in PHP versions < 5. ;)
 
0
•••
what works for file downloads ?
i do not want it just read the text content on target site
i want it to download file from a website which needs referrer as its own website
 
0
•••
Ferman said:
what works for file downloads ?
i do not want it just read the text content on target site
i want it to download file from a website which needs referrer as its own website

help please...
 
0
•••
hello
I can you script asper you want meet me at YIM:[email protected]
So we can discuss out more.


Seema
 
0
•••
I think he may want this to get around hotlink protection which uses .htaccess?
 
0
•••
testme said:
I think he may want this to get around hotlink protection which uses .htaccess?

exactly what i am looking for
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back