WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 21st, 2006, 10:07 AM
Dakota808 Dakota808 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Dakota808 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 50 sec
Reputation Power: 0
WAP Service by Country

Hi,

I am looking for some guidance on how to restrict or deliver country specific content for the location the device is situated in. I have a WAP server but have been unable to work out how to isolate where the device is accessing from. As an example I have a travelling customer who is from country A but travels to country B. What I would like to do is identify that he has moved to country B and deliver or restrict content based on the users new location.

I am really stumped on this one so any points would be of great help. A solution would be perfect

Dakota808

Reply With Quote
  #2  
Old September 21st, 2006, 02:30 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
Hi there,

Welcome to Dev Shed, hope you enjoy your time here!

This is a tricky one as keeping state on WAP is harder than doing so on the normal web.

I suppose you could do some IP to country geo-targeting to find out the original country the user is in, create some long lasting session variables you store in the URL but then you're requiring the user to actually bookmark a URL with the session, if they just return to your home page you will lose that session.

The only other thing I can think of would be to use cookies on this but then as we all know the support for them is limited rather than widespread.

There's many optoins for IP to Country, maxmind.com is a viable yet commercial option which is more reliable than the free databases out there like from hostip.info

Even still, say someone moved from the UK to Spain and didn't have cookies enabled you'd serve Spanish content to them, this isn't what you want so you'd still need to build in some kind of override function so the user can be in Spain, Germany or wherever and bypass the Geo-IP to request British / UK based content.

You'd need to find some way of storing the values if you go for a commercial solution like maxmind.com as the average wap user does more pageviews than the web user and credits would be eaten in no time at all if each click resulted in a fresh, albeit needless, query.

It's a good challenge and I'm interested to hear what others have to add about it.

Good luck with this and let us all know how you get on.

Cheers
__________________
Andy Moore << oh no it's got a blog.....
Word Press WAP Plugin with Ad Mob Advertising revenue
PHP developer
deploying ringtones, mp3 downloads and realtones
I'm a geek who's obsessed with stats and gadgets

Reply With Quote
  #3  
Old September 27th, 2006, 08:07 AM
Dakota808 Dakota808 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Dakota808 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 50 sec
Reputation Power: 0
Is there a way to extract carrier information from the handset itself? This could be a neat way for working out the country and resolve the roaming challenge?

Reply With Quote
  #4  
Old September 28th, 2006, 06:09 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
Only a very small proportion of carriers send this data over the standard headers, the guys over at admob.com seem to have sorted out a way of doing it, the only way I can think of emulating this would be to get the IP address and perform a lookup on the netblock owner though I did manage to find this limited (yet still excellent) list somewhere
Gateway IP Address, Country, Network
130.244.196.90, Norway, Tele2
130.244.196.91, Norway, Tele2
130.244.196.92, Norway, Tele2
139.7.29.1, Germany,
149.254.1.27, UK, T-Mobile
149.254.201.133, UK, T-Mobile
149.254.201.134, UK, T-Mobile
151.80.4.147, Italy,
151.80.5.25, Italy,
151.83.9.69, Italy,
166.179.37.130, New Zealand,
192.118.11.101 Israel, Orange
192.71.148.10, Sweden, Telia
193.108.252.51, Uganda,
193.113.200.129, UK, O2
193.113.200.160, UK, O2
193.113.200.162, UK, O2
193.113.200.163, UK, O2
193.113.200.172, UK, O2
193.113.200.174, UK, O2
193.113.200.175, UK, O2
193.113.200.204, UK, O2
193.113.200.205, UK, O2
193.113.200.216, UK, O2
193.113.200.217, UK, O2
193.113.200.231, UK, O2
193.113.235.170, UK, O2
193.209.134.143, Finland,
193.35.129.161, UK, Orange
193.35.129.169, UK, Orange
193.41.60.22, Ukraine,
194.134.0.98, Netherlands,
194.182.251.15, Denmark, TDC
194.206.212.1, France, Orange
194.9.223.113, Poland,
195.115.116.90, France,
195.167.65.216, Greece,
195.55.47.52, Spain, Telefonica TME
196.11.240.228, South Africa, MTN-SA
196.11.240.229, South Africa, MTN-SA
196.11.241.45, South Africa,
196.11.245.33, South Africa, MTN-SA
196.207.32.253, South Africa,
196.207.41.251, South Africa,
196.207.44.230, South Africa, Vodacom
196.207.44.231, South Africa, Vodacom
196.207.44.232, South Africa, Vodacom
196.207.44.233, South Africa, Vodacom
196.207.44.234, South Africa, Vodacom
196.207.44.235, South Africa, Vodacom
196.207.44.236, South Africa, Vodacom
196.207.44.237, South Africa, Vodacom
196.207.44.245, South Africa, Vodacom
196.207.44.246, South Africa, Vodacom
196.207.44.247, South Africa, Vodacom
196.207.44.248, South Africa, Vodacom
196.207.44.249, South Africa, Vodacom
196.207.44.250, South Africa, Vodacom
196.207.44.251, South Africa, Vodacom
196.207.44.252, South Africa, Vodacom
196.207.45.254, South Africa, Vodacom
196.31.58.5, South Africa,
200.35.64.67, Venezuela,
200.35.64.68, Venezuela,
200.91.1.34, Chile,
202.134.12.7 Bangladesh, AKTEL
202.56.231.117, India,
202.73.198.32, New Zealand, Vodafone
202.93.36.58, Indonesia,
203.124.2.59, Singapore,
203.145.128.6, India,
203.145.159.37, India,
203.170.228.172, UK,
203.20.35.97, Australia, Vodafone
206.47.78.150, Canada,
212.129.64.243, Ireland,
212.17.131.31, Norway, Telenor
212.17.131.32, Norway, Telenor
212.17.144.230, Belgium,
212.17.144.230, Norway, Telenor
212.18.178.21, Portugal,
212.183.134.64, UK,
212.183.134.65, UK,
212.183.134.66, UK,
212.183.134.67, UK,
212.183.136.192, UK,
212.183.136.193, UK,
212.183.136.194, UK,
212.183.136.195, UK,
212.35.34.70, Switzerland,
212.39.122.233, Germany,
212.45.191.10, Norway, NetCom
212.45.191.8, Norway, NetCom
212.45.191.9, Norway, NetCom
212.51.126.14, Hungary, Westel T-Mobile
212.51.126.4, Hungary, Westel T-Mobile
212.65.63.145, Belgium,
212.65.63.149, Belgium,
213.143.33.6, Spain,
213.151.208.225, Slovak Republic,
213.162.66.126, Austria,
213.205.196.233, UK,
213.205.254.206, UK,
213.223.200.80, France,
213.223.200.81, France,
213.226.131.133, Lithuania,
213.233.159.7, Ireland,
213.26.205.144, Italy,
213.55.130.205, Switzerland,
217.118.85.65, Russia, BEEOffice JSC WimpelCom
217.71.32.236, Estonia, EMT
217.72.231.4, Belgium,
217.77.165.33, Czech Republic, Cesky Mobil
217.8.224.194, Russia,
219.64.175.132, India,
220.227.211.117, India,
58.145.143.3, Australia,
59.145.208.6, India,
62.142.4.69, Finland,
62.201.129.241, France, Bouygues Telecom
62.44.158.29, Denmark,
62.87.92.11, Spain,
66.94.9.51, , T-Mobile
68.28.115.112, USA, Sprint
68.28.115.113, USA, Sprint
68.28.115.114, USA, Sprint
68.28.115.115, USA, Sprint
68.28.115.116, USA, Sprint
68.28.115.117, USA, Sprint
68.28.115.118, USA, Sprint
68.28.123.112, USA, Sprint
68.28.123.113, USA, Sprint
68.28.123.114, USA, Sprint
68.28.123.115, USA, Sprint
68.28.123.116, USA, Sprint
68.28.123.117, USA, Sprint
68.28.123.118, USA, Sprint
68.28.147.112, USA, Sprint
68.28.147.113, USA, Sprint
68.28.147.114, USA, Sprint
68.28.147.115, USA, Sprint
68.28.147.116, USA, Sprint
68.28.147.117, USA, Sprint
68.28.147.118, USA, Sprint
68.28.155.112, USA, Sprint
68.28.155.113, USA, Sprint
68.28.155.114, USA, Sprint
68.28.155.115, USA, Sprint
68.28.155.116, USA, Sprint
68.28.155.117, USA, Sprint
68.28.155.118, USA, Sprint
68.28.179.112, USA, Sprint
68.28.179.113, USA, Sprint
68.28.179.114, USA, Sprint
68.28.179.115, USA, Sprint
68.28.179.116, USA, Sprint
68.28.179.117, USA, Sprint
68.28.179.118, USA, Sprint
68.28.187.112, USA, Sprint
68.28.187.113, USA, Sprint
68.28.187.114, USA, Sprint
68.28.187.115, USA, Sprint
68.28.187.116, USA, Sprint
68.28.187.117, USA, Sprint
68.28.187.118, USA, Sprint
68.28.243.112, USA, Sprint
68.28.243.113, USA, Sprint
68.28.243.114, USA, Sprint
68.28.243.115, USA, Sprint
68.28.243.116, USA, Sprint
68.28.243.117, USA, Sprint
68.28.243.118, USA, Sprint
68.28.251.112, USA, Sprint
68.28.251.113, USA, Sprint
68.28.251.114, USA, Sprint
68.28.251.115, USA, Sprint
68.28.251.116, USA, Sprint
68.28.251.117, USA, Sprint
68.28.251.118, USA, Sprint
68.28.51.112, USA, Sprint
68.28.51.113, USA, Sprint
68.28.51.114, USA, Sprint
68.28.51.115, USA, Sprint
68.28.51.116, USA, Sprint
68.28.51.117, USA, Sprint
68.28.51.118, USA, Sprint
68.28.59.112, USA, Sprint
68.28.59.113, USA, Sprint
68.28.59.114, USA, Sprint
68.28.59.115, USA, Sprint
68.28.59.116, USA, Sprint
68.28.59.117, USA, Sprint
68.28.59.118, USA, Sprint
68.28.91.113, USA, Sprint
80.187.95.35, Germany, T-Mobile
80.251.195.1, Denmark,
80.251.195.2, Denmark,
80.27.6.20, Spain, Telefonica TME
81.169.63.6, Belgium,
82.113.100.4, Germany, O2
83.217.40.124, Russia, Moscow Cellular
83.224.64.55, Italy, Vodafone
83.224.64.9, Italy, Vodafone
83.225.132.101, Italy, Vodafone
84.15.15.11, Lithuania,
84.15.15.12, Lithuania,
84.224.0.134, Hungary,
84.61.21.12, Germany, Arcor
This list was originally publised elsewhere, it is not my work and I can't seem to find the link for it right now.

I originally found it through a link on the WML programming Group over on Yahoo. I guess it's still there but this list is small and covers just a drop of what's out there.

Reply With Quote
  #5  
Old October 2nd, 2006, 10:50 AM
Dakota808 Dakota808 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 3 Dakota808 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 50 sec
Reputation Power: 0
This might be an interesting answer to country/ip issue and they update it which I think needs to be an important factor...

http://www.ip2location.com

Getting closer

Reply With Quote
  #6  
Old October 12th, 2006, 04:44 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
Any progress on this?

I'm just running a script to work out the netname from the ripe data on a lookup on each ip.

Tis slow and not too solid though. Some report back a carrier we can work out, others don't.

Please update if you got any closer than ip2location.com thanks!

Reply With Quote
  #7  
Old October 14th, 2006, 03:55 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
v quick follow up - i have a list of over a thousand ip addresses, many of which have netnames that show networks like tmobileuk, pannon, orange, o2 etc.

if anyone wants the list send me a pm. it's too big to post here.

edit > but you can bloody well say please or you're getting nowt.

Last edited by andymoo : January 18th, 2007 at 08:19 AM.

Reply With Quote
  #8  
Old January 16th, 2007, 06:32 AM
native native is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 native User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by andymoo
v quick follow up - i have a list of over a thousand ip addresses, many of which have netnames that show networks like tmobileuk, pannon, orange, o2 etc.

if anyone wants the list send me a pm. it's too big to post here.


Hi there, I just cannot figure out how to use pm.
Could you send me this ip addresses database?
Really need it in my project.
Thank you in advance.

Reply With Quote
  #9  
Old January 18th, 2007, 08:18 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
Quote:
Originally Posted by native
Hi there, I just cannot figure out how to use pm.
Could you send me this ip addresses database?
Really need it in my project.
Thank you in advance.

The word project turns me off the idea, the lack of the word please really turns me off the idea.

I think I'm trying to say NO NOT A CAT IN HELLS CHANCE IF YOU'RE NEEDING IT FOR A 'PROJECT' AND CAN'T SAY PLEASE.

The project bit I could forgive but being without manners I can't.

Oh, welcome btw!

Reply With Quote
  #10  
Old February 25th, 2008, 02:22 PM
D_Ginola D_Ginola is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 D_Ginola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 0
How did you put this together?

Was this a manual task putting this in place..

Looking to find a repeatable solution for mapping IPs to Mobile Operators. What you've done below looks good..

How did you put it together?

A full list would be great.. Is it based on geoip location + something?

Could I get the full list please?

Reply With Quote
  #11  
Old February 26th, 2008, 12:23 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 604 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 51 m 42 sec
Reputation Power: 63
Hi there,

For the blurb:

http://www.andymoore.info/wap-ip-to-carrier-detection/

To cut to the point:

andymoore.info/download-manager.php?id=1

There's millions and millions of rows of data I've built up now, I need to run all this again.

Select distinct ip address, look it up against http://phpclasses.fonant.com/browse/file/8431.html to get a NETNAME value, say vodafone owns ip xxx.xxx.xxx.xxx it'll return something like 'Vodafone GB' or whatever.

Filter.........

It did take a few hours to sort it all our, there's a bomb of data to go through and it takes an age. Not got the time at the moment to update but if I ever do keep an eye on my RSS and I'll post new releases.
Comments on this post
jabba_29 agrees!

Reply With Quote
  #12  
Old February 26th, 2008, 12:55 PM
D_Ginola D_Ginola is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 D_Ginola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 0
Cheers..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > WAP Service by Country


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump