79742723

Date: 2025-08-21 20:06:29
Score: 2.5
Natty:
Report link

iPad userAgent string has no 'iPad' or 'iPhone' in the string any longer.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.7 Safari/605.1.15

Will the folliwing return true with iPads and false with all other Apple/Macs computers and iPhones?

.. = preg_match("/Macintosh;\sIntel\sMac\sOS\sX\s[\d]{2,4}_[\d]{1,8}_[\d]{1,4}/i", $_SERVER["HTTP_USER_AGENT");

If any one has a Mac that's not an iPad, please post user agent.

I am using PHP so can't use javascript

'ontouchstart' in window or navigator.msMaxTouchPoints or screen.width etc.

Reasons:
  • RegEx Blacklisted phrase (2.5): please post us
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Mark Antony Agius