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
https://forums.phpfreaks.com/topic/14432-header-modification/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.