You want to find the user's hostname of their browser. You can then determine they are on a mobile device and can direct them accordingly.
I can browse Google on my cellphone, so I don't see how getting the REFERRING URL will do any good.
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I am having a mobile site developed, however, my developer has been unable to find a suitable code to pull a MOBILE PHONE visitor's REFERRAL URL and prefill a form with that information.
Limitations:
HTTP_REFERRER is only valid if the user clicks on a link to get to my site. I need a way to pull the user's referral url if they are visiting any site and decide to visit mine by pulling up their bookmark menu and selecting my link.
Javascript support for mobile phones is unreliable.
-----
Thank you for any help you can provide.
You want to find the user's hostname of their browser. You can then determine they are on a mobile device and can direct them accordingly.
I can browse Google on my cellphone, so I don't see how getting the REFERRING URL will do any good.
I'm not looking to redirect the user. I specifically want their referral url.
For example, I'm visiting dir.mobi and then go to my bookmark menu on my phone and click a premade bookmark to go to mysite.mobi/index.php?action=referrer, I would like to have a code on mysite.mobi that will say "the user came from here", and then place that url into a variable to prefill a form with.
Thank you.
Oh ok. There was someone the other day looking to redirect.
Hit *69![]()
If only it was that easy.
I may be wrong on all this:
HTTP_REFERER is typically an address, an actual URI of some referring document. A bookmark stored by a browser interface isn't a URI (it isn't an address/location on the web, it's just a link in a config file, and when I say this I don't include bookmarking sites like del.icio.us, whose bookmarks *would* be an HTTP_REFERER when clicked)
The best you can do in this case is maybe is REMOTE_ADDR or REMOTE_HOST, but then a lot of mobile devices would be connecting over NAT through a proxy, so you'd wind up with the IP/URL of the proxy.
I buy domains with javascript backlinks. PM me.
I don't think you can do it. The value is sent by the browser so it is browser-dependant and I think it leaves the value blank for bookmarks. If you go to the privacy.net analyzer it shows the full headers sent by the browser so you can see everything that is there.
Network-Tools.com - Network Tools since 1998
Bookmarks