wap портал не доступен на компе!

Discussion in 'PHP' started by Dahaking, 16 Apr 2009.

  1. Dahaking

    Dahaking Banned

    Joined:
    28 Mar 2009
    Messages:
    6
    Likes Received:
    0
    Reputations:
    0
    Как сделать чтобы на WAP сайт могли заходить только с мобилы, а с компа нет?
     
  2. Gar|k

    Gar|k Moderator

    Joined:
    20 Mar 2009
    Messages:
    1,166
    Likes Received:
    266
    Reputations:
    82
    ну можно тупа по проверке хеадера USER-AGENT
     
    _________________________
  3. Dahaking

    Dahaking Banned

    Joined:
    28 Mar 2009
    Messages:
    6
    Likes Received:
    0
    Reputations:
    0
    как?
     
  4. malik555

    malik555 New Member

    Joined:
    4 Feb 2009
    Messages:
    132
    Likes Received:
    1
    Reputations:
    0
    переменная есть такая глобальная $HTTP_USER_AGENT
     
  5. Berzerker

    Berzerker Banned

    Joined:
    21 Jan 2009
    Messages:
    9
    Likes Received:
    1
    Reputations:
    0
    Opera + плагин смены юзер агента...
    Неотвертишься...
     
  6. Gar|k

    Gar|k Moderator

    Joined:
    20 Mar 2009
    Messages:
    1,166
    Likes Received:
    266
    Reputations:
    82
    Berzerker
    а ты знаешь какие заголовки у телефоных обозревателей???
    я нет...
     
    _________________________
  7. Berzerker

    Berzerker Banned

    Joined:
    21 Jan 2009
    Messages:
    9
    Likes Received:
    1
    Reputations:
    0
    Нет, но узнать какие хидеры шлёт хотя-бы таже Opera Mini думаю проблем несоставит...
     
  8. inlanger

    inlanger Elder - Старейшина

    Joined:
    7 Jan 2007
    Messages:
    985
    Likes Received:
    283
    Reputations:
    27
    По одним хедерам не покатит...