Results 1 to 2 of 2

Thread: Can PHP detect a referrer of another protocol?

  1. #1
    Join Date
    Sep 2004
    At the corner of WALK and DONT WALK

    Can PHP detect a referrer of another protocol?

    I know you can do something like "$_server['HTTP_REFERER];" and get the website that the referring link was in. But what if you're using a different protocol What I am trying to do is have a MySQL query run when AND ONLY WHEN a link was clicked from the Furcadia client (which uses the furc:// protocol), instead of a URL being entered directly or someone clicking on a link in a webpage. Basically, the referring URL would be furc://puzzlepalace.

    Is this even possible?

  2. #2
    Join Date
    Oct 2010
    While would be possible to get the protocol from the referrer, this is a header provided by the browser at its own whim (aka no guaruntee its there, or accurate). On top of that the user would be clicking a link in another program, meaning as far as the browser knows there is no referrer to populate (its the first page visited in that tab/window). What you could do it give a query string value to the URLs appearing in said third party program, and check for its existence.
    www.rdennispallas.com <-- Personal Site, changing regularly cuz its ugly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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