BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-05-2006, 10:03 PM   #1
9thtee
Thumbs Must Hurt
 
Join Date: Mar 2006
Model: 8300
Carrier: Cingular
Posts: 69
Default Web page just for Blackberry

Please Login to Remove!

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
Offline  
Old 05-06-2006, 02:56 PM   #2
jophes49087
Knows Where the Search Button Is
 
jophes49087's Avatar
 
Join Date: Oct 2005
Location: Schoolcraft MI
Model: 8330
OS: v4.5.0.13
PIN: 30AC3009
Carrier: verizon
Posts: 30
Default

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.
__________________
PIN 4006C1A7
Offline  
Old 05-06-2006, 03:39 PM   #3
brace! brace!
Knows Where the Search Button Is
 
brace! brace!'s Avatar
 
Join Date: Apr 2006
Location: Sydney, Australia
Model: 8700g
Posts: 43
Default

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.
__________________
- Simon

BB: 8700g
PIN: 20403872
Google Talk: brace.brace
Offline  
Old 05-17-2006, 08:10 AM   #4
mgaffney
Knows Where the Search Button Is
 
mgaffney's Avatar
 
Join Date: Apr 2006
Location: Baltimore, Maryland
Model: 9000
Carrier: AT&T
Posts: 16
Default

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.
Offline  
Closed Thread


Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512 picture

10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512

$28.31



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$16.54



EZP2019 High Speed USB SPI Programmer Support 24 25 26 93 EEPROM 25 Flash Bios picture

EZP2019 High Speed USB SPI Programmer Support 24 25 26 93 EEPROM 25 Flash Bios

$16.99



5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US picture

5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US

$27.99



EEProm TSXMC70 E 38 picture

EEProm TSXMC70 E 38

$140.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.