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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.