Web page just for Blackberry
Hi,
Does anyone know how to create a web page so that it is only viewable while using a Blackberry? I have gone to a couple sites on my PC (don't remember their names right now) that just gave a message that the page is for access from a Blackberry only. If you go to the same page on the Blackberry, you see the intended page. How can I do this? Thanks, Mark |
Ok, I will show my ignorance here. Guess it would depend on whether it was HTML or WAP webpages. Don't know if you can view WAP on a PC. I am guessing, so dontlose any money on my answer.
|
To view WAP pages from your desktop, you need a program like WinWAP. Usually when you hit a website saying that you're denied accesss, it's usually because you've accessed the website from a desktop browser so you get re-directed to the error page.
Never seen one which states BlackBerry only but I imagine it's not that hard to do. The simplest and crudest way would be to check the browser and see if it's the BB Browser accessing the server. There's some PHP code here to detect between HTML and WML browsers: http://www.thewirelessfaq.com/4.6.asp That should give you the idea on how to get started. |
Most of the time this is done by checking the 'User-Agent' field that is sent as part of the HTTP Request. If the word 'Blackberry' appears in this value, your user is viewing the website from a blackberry.
BTW... there's lots of other great info in this field, like the model number of the Blackberry the request came from. |
All times are GMT -5. The time now is 06:01 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.