I have a list of URLs and I am going to recognize if the URL is for pc or mobile. the HTML page of the URLs have the certain mark for pc or mobile ?
Asked
Active
Viewed 104 times
-1
-
http://stackoverflow.com/a/26577897/3585278 – Danieboy Jul 22 '16 at 07:03
-
Do you have a definition of "a URL being for PC or mobile"? I don't know of an easy, clear or reliable way to separate these two. – reto Jul 22 '16 at 07:04
-
@Danieboy I don't think this is about recognizing the client – reto Jul 22 '16 at 07:05
-
@reto You might be correct about that. – Danieboy Jul 22 '16 at 07:09
-
1Possible duplicate of [How to detect a mobile device with javascript?](http://stackoverflow.com/questions/6666907/how-to-detect-a-mobile-device-with-javascript) – Ramesh Jul 22 '16 at 07:12
1 Answers
1
There is no distinct way to recognize by certain URL whether website this URL pointing to is built for a mobile devices. There is no way even to recognize whether URL points to a website, it can be some resource, service, etc.
Some websites do not aware from type of the client, another have their own rules, for example, they can use subdomain like http://m.domain.com/
. A large part of websites use Responsive web design, having thus common content for any client type.
But there is no common rule or standard.

olexd
- 1,360
- 3
- 13
- 26