referer spoof using curl

Discussion in 'PHP' started by Panjabi, Jan 31, 2009.

  1. #1
    Could someone please post the code to spoof/cloak a refering header using php, I been told it can be done via curl

    thanks
     
    Panjabi, Jan 31, 2009 IP
  2. klm.php

    klm.php Banned

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's quite simple :)

    curl_setopt($curl, CURLOPT_REFERER, "http://referrer.com");
     
    klm.php, Jan 31, 2009 IP
  3. Panjabi

    Panjabi Peon

    Messages:
    362
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is that all that needs to be added within the php tag?

    Thanks for reply.
     
    Panjabi, Feb 1, 2009 IP