Jump to content

Header Modification


hustla

Recommended Posts

OK what i want to do is spoof the referer on a redirect

I tryed this
header("Location: www.something.com")
header("Referer: www.something2.com")

but what happens is it loses the referer after the redirect i sniffed it with etheral see below

Hypertext Transfer Protocol
    GET /members/links/pluginfeeds.php?ekgsso HTTP/1.1\r\n
        Request Method: GET
        Request URI: /members/links/pluginfeeds.php?ekgsso
        Request Version: HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n
    Referer: http://192.168.1.102/\r\n
    Accept-Language: en-us\r\n
    UA-CPU: x86\r\n
    Accept-Encoding: gzip, deflate\r\n
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)\r\n
    Connection: Keep-Alive\r\n
    Host: www.featuredmemarea.com\r\n
    \r\n

As you can see from above 192.168.1.102 is me not what i specifed in the php header.
Is their anyway to create a GET header like above except where i modify the referer in php. Thanks
Link to comment
Share on other sites

The http referer is supplied by the browser, not the server. Because php is server side you can do nothing about it. Javascript will work (not reliably though) because it is run in the client side which supplies the referer field in the request.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.