Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008

    Question check visitor's IP's referral url ?

    how can i track where the visitor is coming from ? currently, i have a form but the referral is always the previous page on my website.

    I need to find out the moment they come to my site, what the referral URL is.

    Thank You.

  2. #2
    Join Date
    May 2009
    Well, browser headers aren't terribly reliable, and can be spoofed easily, so make sure you're not using this for any kind of authentication/security. Generally, I'm always using some kind of a template that gets included on every page. I'd just put something in that. If not, you could have a separate script that checks the referrer that is included on each page.

    You didn't even mention what language you're using, but the pseudo-code would look something like this:

    1. check the HTTP_REFERER
    2. if it's not from your site, log it or do whatever.

  3. #3
    Join Date
    Sep 2009
    It depends on what your site is written in, but most languages have an ability to get at the HTTP_REFERER in the header. For example, if you wanted to get at it in PHP you would access the server array:


Similar Threads

  1. My Visitor's are getting warned :(
    By Dustin Cisneros in forum Web Hosting Lounge
    Replies: 23
    Last Post: 05-27-2009, 04:35 PM
  2. How To Get Your Visitor's Attention
    By pctank in forum Running a Web Hosting Business
    Replies: 22
    Last Post: 08-03-2008, 06:20 AM
  3. Code for detecting the visitor's Internet connection?
    By vito in forum Programming Discussion
    Replies: 6
    Last Post: 05-30-2004, 12:59 PM
  4. How can I get visitor's browser allows 128 bit ?
    By ghost in forum Hosting Security and Technology
    Replies: 0
    Last Post: 05-10-2003, 10:57 AM

Posting Permissions

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