Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:17:36+00:00 2026-06-13T22:17:36+00:00

My client has very specific request. He wants to block all classic computers (desktop/notebook).

  • 0

My client has very specific request. He wants to block all “classic” computers (desktop/notebook).

So if I access the website from iPhone, Android or tablet it displays everything (the different resolutions I can hadle via responsive design). But when somebody from Mac or Windows or Linux (I know that Android is also based on gnu/linux 😉 ) access the web, he gets only a message that “this web is only for mobile devices”or something like taht.

But I am not sure how to “ban” mac os, win, linux etc.

Could javascript(jQuery) library e.g. Modernizr or other do such specific condition “just mobile devices”?

What about Windows 8 🙁 ?

i am really thankful for any advice, because I have never had such request before?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:17:37+00:00Added an answer on June 13, 2026 at 10:17 pm

    I think you could do this in several ways.

    Either you check via javascript, but then you if somebody would turn off javascript you would be screwed again because they could take a look at the website:

    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
     // some code..
    }
    

    or you could check it via modernizr, but I don’t know exactly how to do it in modernizr and you would also have the problem of turned off javascript code,

    or you could download a script that is suitable for your case via:

    http://detectmobilebrowsers.com/

    another thing you could do is checking the screen resolution but, then we are back at the javascript case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client apllication that run in very restricted area - it has
My client has a website but doesn't check emails often. He has a lot
I have nearly finished off a website for a client at work, which has
Well, I guess this day had to come. My client's website has been compromised
A client has a website running on a dedicated host (either developed, nor managed
My client has recently taken ownership of an existing web site, with final deliverable
My client has a compiled ASP.NET 2.0 application that was compiled & deployed a
A client has given me a spreadsheet of hundreds of domain names. My task
A client has asked for a page loader, something attractive to let the visitor
My client has a asp.net application, using ajax, he has a datagrid that shows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.