By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

How do I retrieve a mobile phone id

P: n/a
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

Apr 28 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
rf
"Johnny BeGood" <jb*@jbg.netwrote in message
news:GH*******************@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.
Apr 28 '07 #2

P: n/a
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.comwrote in message
news:63*****************@news-server.bigpond.net.au...
"Johnny BeGood" <jb*@jbg.netwrote in message
news:GH*******************@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.
Apr 28 '07 #3

P: n/a
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" <vi****@spamcop.netwrote in message
news:vi**************************@comcast.dca.giga news.com...
In article <63*****************@news-server.bigpond.net.au>,
"rf" <rf@invalid.comwrote:
>"Johnny BeGood" <jb*@jbg.netwrote in message
news:GH*******************@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.

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...
Apr 28 '07 #4

P: n/a
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...

--
Ra*********@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Apr 28 '07 #5

P: n/a
Thanks for all your help, guys!

Mark
"Rami Elomaa" <ra*********@gmail.comwrote in message
news:f1**********@nyytiset.pp.htv.fi...
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...

--
Ra*********@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Apr 28 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.