Results 1 to 4 of 4

Thread: PHP Redirect issue

  1. #1
    Join Date
    Dec 2008
    Redmond, Oregon

    PHP Redirect issue

    What would be the coded that would be needed to redirect a user and still show its refer?

    I am bouncing unwanted traffic off my proxy sites and sending them to my proxy list. Now in my proxy list the visitor counts are increasing but when I look at the refer links its not showing the sites I would have to say it showing as direct type in.

    I am assuming the script needs to return the refer header but I cant seem to find any that work or do this.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  2. #2
    You must be using a meta refresh or something like that which is blanking the referrer. You want some thing like below to keep the referrer.

    Programmer, web developer and entrepreneur.

  3. #3
    Join Date
    Dec 2008
    Martinique, FWI
    Beware of security !

    Hackers can't stop the redirection now.

  4. #4
    The referer header is set by the client so you can't do it through php.
    This seems like a pretty good solution.

      print "<html><head><title>redirect</title><meta http-equiv=\"Refresh\" content=\"0; URL=$url\"><head><body onLoad=\"javascript: window.location='$url';\">$url</body></html>";
    Where $url is where you want to redirect to.

    That will allow the url of the script that does the redirecting to show up as the referer.

Similar Threads

  1. www and non www url issue
    By 1901gt in forum Managing
    Replies: 5
    Last Post: 20 April, 2009, 19:42 PM
  2. [WTH] Repair css IE/FF issue
    By Mr.Bill in forum Services
    Replies: 3
    Last Post: 25 February, 2009, 19:41 PM
  3. Need some help with a CSS issue
    By Mr.Bill in forum Programming
    Replies: 5
    Last Post: 16 December, 2008, 20:39 PM

Tags for this Thread


Posting Permissions

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