Closed Thread
Results 1 to 5 of 5

Thread: http referer and header location problem

  1. #1
    eurusd is offline Newbie
    Join Date
    Dec 2008
    Posts
    8
    Rep Power
    0

    http referer and header location problem

    On site site1.com and many others people use ip showing gif
    <img src=site2.com/yourip.gif>

    I want to redirect from site2.com to site3.com
    Code:
    Header("Location: site3.com/newip.php"); 
    But how to change or blank $REFERER, so site3.com sees as referrer site2.com or blank?
    Any Ideas? Is there any trick to that?
    Last edited by Jaan; 12-19-2008 at 01:53 PM. Reason: Please use code tags when you're posting your codes!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jaan Guest

    Re: http referer and header location problem

    Code:
    unset($_SERVER['HTTP_REFERER']); 
    I don't know if it works but you can try it

  4. #3
    eurusd is offline Newbie
    Join Date
    Dec 2008
    Posts
    8
    Rep Power
    0

    Re: http referer and header location problem

    hmm, did you try it?

  5. #4
    eurusd is offline Newbie
    Join Date
    Dec 2008
    Posts
    8
    Rep Power
    0

    Re: http referer and header location problem

    nope does not work

  6. #5
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    41

    Re: http referer and header location problem

    I think that the referrer is sent by the browser to the server in the request
    something like:
    Code:
    GET /index.php
    REFERRER dom2.com/index.php
    The server itself would never know on which page the browser just left.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem in a href location from php code to html code
    By newphpcoder in forum PHP Development
    Replies: 5
    Last Post: 05-13-2011, 02:03 PM
  2. Beginner IP Location with PHP
    By Jaan in forum PHP Tutorials
    Replies: 11
    Last Post: 01-04-2011, 08:18 PM
  3. Problem with header
    By BINNY88 in forum C and C++
    Replies: 25
    Last Post: 11-23-2008, 03:14 PM
  4. HTTP Header & Data Separation
    By BackSlash in forum C# Programming
    Replies: 1
    Last Post: 02-25-2008, 05:09 AM
  5. Replies: 4
    Last Post: 06-29-2007, 04:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts