SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    USA
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question $_SERVER['HTTP_REFERER'] VS Norton

    Hello,

    Iam using the following code:
    PHP Code:
        if(substr_count($_SERVER['HTTP_REFERER'],"mail.php") > 0){
            
    $_SESSION['m_f_name'] = $_POST['first_name'];
            
    $_SESSION['m_l_name'] = $_POST['last_name'];
            
    $_SESSION['m_street'] = $_POST['street'];
            
    $_SESSION['m_apt'] = $_POST['apt'];
            
    $_SESSION['m_city'] = $_POST['city'];
            
    $_SESSION['m_state'] = $_POST['state'];
            
    $_SESSION['m_zip'] = $_POST['zip'];
            
    $_SESSION['m_email'] = $_POST['email'];
        } 
    It works as it is supposed to unless the machine is behind Norton Personal Firewall. I have not test with any other sw firewalls. I do not know if the problem is with the $_SERVER[] or the HTTP_REFERER part, but know that the problem is there. If I do an
    PHP Code:
    echo($_SERVER['HTTP_REFERER']); 
    I get nothing.

    Is this a problem with Norton or any sw firewall in general, and should i avoid the $_SERVER['HTTP_REFERER'] statement?

    Any help is greatly appreciated, THANKS

  2. #2
    SitePoint Enthusiast HogMan's Avatar
    Join Date
    Mar 2003
    Location
    Nebraska
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is norton can block the referer. Nothing you can do about this. On our site, we put a note on the download section stating if you have norton personal firewall, you will need to turn that feature off or disable the firewall in order to download. Basically, we check to see if the referer is from our own site when someone downloads, if not, we sent them to page for the file itself. We had so much BW usage from offsite linking we thought the least someone could do was actually check our site out

  3. #3
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTTP_REFERER comes from the browser, and not all browsers even send it, as well as some firewalls block it, it is not reliable.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    USA
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh damn that blows. Thanks for the info guys!


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
  •