|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
||||
|
||||
|
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, NetworkThis 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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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! |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
Quote:
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. |
|
#9
|
||||
|
||||
|
Quote:
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! ![]() |
|
#10
|
|||
|
|||
|
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? |
|
#11
|
||||
|
||||
|
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. |
|
#12
|
|||
|
|||
|
Cheers..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > WAP Service by Country |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|