Capturing Referring URL to drive content

Discussion in '.NET' started by slamar, Aug 17, 2011.

  1. slamar

    slamar

    Joined:
    Aug 17, 2011
    Messages:
    1
    Likes Received:
    0
    I have a client that wants to show a unique phone number on their website when the source of the traffic comes from a specific website (ie: google.com, bing.com or yahoo.com).

    Is there a way to do this with javascript? I basically need to figure out a way to identify the referring website of a visitor. If so, can someone write out the code for me, please?
     
    slamar, Aug 17, 2011
    #1
    1. Advertisements

  2. slamar

    0xDEAD10CC

    Joined:
    May 29, 2016
    Messages:
    3
    Likes Received:
    0
    Why would you do this with javascript? It's very easy to do with PHP.
     
    0xDEAD10CC, May 29, 2016
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon
    Replies:
    5
    Views:
    12,208
    Scott M.
    Jan 17, 2010
  2. mh
    Replies:
    4
    Views:
    913
    Wolfgang Strobl
    May 31, 2005
  3. Tom Anderson
    Replies:
    8
    Views:
    611
    Gerrit Holl
    Sep 15, 2005
  4. Mike Joyce
    Replies:
    3
    Views:
    3,451
    Gordon Rainsford
    May 3, 2006
  5. shailesh
    Replies:
    1
    Views:
    1,083
    Tim Golden
    Mar 28, 2007
  6. deliasmith

    C DRIVE AND D DRIVE

    deliasmith, May 16, 2008, in forum: ASP .Net
    Replies:
    16
    Views:
    3,109
    LittleJack.es@gmail.com
    Jun 7, 2009
  7. lar
    Replies:
    0
    Views:
    342
  8. king
    Replies:
    1
    Views:
    473
Loading...