Home > Archive > PHP Programming > April 2007 > How do I retrieve a mobile phone id
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do I retrieve a mobile phone id
|
|
| Johnny BeGood 2007-04-28, 3:59 am |
| Hi All,
Has anyone got any ideas on how to retrieve mobile phone info from a phone
that connects to my web site, I want to use that data as part of logon
authentication, for example:
<?php
$user_agent = $_SERVER["HTTP_USER_AGENT"];
?>
The info from your mobile is <?php echo($user_agent ); ?>
will give me info such as
Nokia 6060/2.0(5.11)
Profile/MDP-2.0
Configuration/CLDC-1.1
I would like to retrieve the phone number of the phone and any other id data
thats available.
Any ideas?
Any suggestions are gratefuly recieved!
Mark
| |
|
| "Johnny BeGood" <jbg@jbg.net> wrote in message
news:GHDYh.19241$j7.373033@news.indigo.ie...
> Hi All,
>
> Has anyone got any ideas on how to retrieve mobile phone info from a phone
> that connects to my web site, I want to use that data as part of logon
> authentication, for example:
<snip>
> I would like to retrieve the phone number of the phone and any other id
> data thats available.
You are kidding, right?
Would you also like the phone owners name and address, perhaps their bank
account details?
> Any ideas?
Think about *privacy*.
Richard.
| |
| Michael Vilain 2007-04-28, 6:58 pm |
| In article <63HYh.30848$M.12959@news-server.bigpond.net.au>,
"rf" <rf@invalid.com> wrote:
> "Johnny BeGood" <jbg@jbg.net> wrote in message
> news:GHDYh.19241$j7.373033@news.indigo.ie...
>
> <snip>
>
>
> You are kidding, right?
>
> Would you also like the phone owners name and address, perhaps their bank
> account details?
>
>
> Think about *privacy*.
>
> Richard.
OK to be more explicit. Bottom line: you don't. Unless the phone's
browser gives you the number, you're SOL. Figure out some other way.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
| |
| Johnny BeGood 2007-04-28, 6:58 pm |
| Hi Richard,
Perhaps I should explain, the user of the site, who will be the owner of the
phone will have volunteered that data in the first place, I just want to be
able to check that it is that actual phone that is logging on, this data is
available throught HTTP Headers from the phone. I do agree with you on the
privacy issue.
Thanks anyway
Mark
"rf" <rf@invalid.com> wrote in message
news:63HYh.30848$M.12959@news-server.bigpond.net.au...
> "Johnny BeGood" <jbg@jbg.net> wrote in message
> news:GHDYh.19241$j7.373033@news.indigo.ie...
>
> <snip>
>
>
> You are kidding, right?
>
> Would you also like the phone owners name and address, perhaps their bank
> account details?
>
>
> Think about *privacy*.
>
> Richard.
>
| |
| Johnny BeGood 2007-04-28, 6:58 pm |
| Hi Michael,
Perhaps I should explain, the user of the site, who will be the owner of the
phone will have volunteered that data in the first place, I just want to be
able to check that it is that actual phone that is logging on, this data is
available throught HTTP Headers from the phone. I do agree with you on the
privacy issue.
Thanks anyway
Mark
"Michael Vilain" <vilain@spamcop.net> wrote in message
news:vilain-FB92CB.06594928042007@comcast.dca.giganews.com...
> In article <63HYh.30848$M.12959@news-server.bigpond.net.au>,
> "rf" <rf@invalid.com> wrote:
>
>
> OK to be more explicit. Bottom line: you don't. Unless the phone's
> browser gives you the number, you're SOL. Figure out some other way.
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...
>
>
>
| |
| Rami Elomaa 2007-04-28, 6:58 pm |
| Johnny BeGood kirjoitti:
> Hi Michael,
>
> Perhaps I should explain, the user of the site, who will be the owner of
> the phone will have volunteered that data in the first place, I just
> want to be able to check that it is that actual phone that is logging
> on,
There are alternative, better ways for authorizing the user.
> this data is available throught HTTP Headers from the phone.
No, it isn't. And even if it were, do you realize how easy it is to open
pages with php and write custom headers. Say I want to hack in your
system. Fine, I'll just open a socket with fsockopen, write the headers,
insert your phone number in the headers and chi-ching, you're pwend.
Secure? I don't think so, Tim.
> I do agree with you on the privacy issue.
Then you'll understand why it isn't in the headers. What makes you think
it would be?
If you don't believe me, just echo the entire header to see for
yourself. <?php print_r(getallheaders()); ?> If the phone number was
there, please let me know...
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
| |
| Johnny BeGood 2007-04-28, 6:58 pm |
| Thanks for all your help, guys!
Mark
"Rami Elomaa" <rami.elomaa@gmail.com> wrote in message
news:f10agn$ion$1@nyytiset.pp.htv.fi...
> Johnny BeGood kirjoitti:
>
> There are alternative, better ways for authorizing the user.
>
>
> No, it isn't. And even if it were, do you realize how easy it is to open
> pages with php and write custom headers. Say I want to hack in your
> system. Fine, I'll just open a socket with fsockopen, write the headers,
> insert your phone number in the headers and chi-ching, you're pwend.
> Secure? I don't think so, Tim.
>
>
> Then you'll understand why it isn't in the headers. What makes you think
> it would be?
>
> If you don't believe me, just echo the entire header to see for yourself.
> <?php print_r(getallheaders()); ?> If the phone number was there, please
> let me know...
>
> --
> Rami.Elomaa@gmail.com
>
> "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
> usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
|
|
|
|
|