Why??? Because the customer of the person I am writing the code for wants it that way.
That's never a valid reason. That's a bit like saying "I was just following orders", and you know where that goes.
I cannot ethically help you in your quest without a better explanation. And I would recommend you consider that you cannot ethically complete your task without more justification from your "boss".
Write standard HTML, and you don't have to worry what platform I'm on. Please. Please don't send me to "UPGRADE YOUR BROWSER" hell just because I'm on an operating system of my choice.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
Sorry if I offended.
I don't have a boss per se. I am a gardener by trade, not a programmer.
For whatever business reasons they have, they wish to send Mac Users one place, other people another. Nobody here wants to upgrade/change peoples browsers. I am confused as to the ethical implications here?
Anyone wishes to educate me, try
Put something with Perl in title.
odd ball, non standard browser = any browser that is uncommon on a Mac. Perhaps my language was poor, I did not mean to imply uncommon browsers were bad.
Well that's why someone mentioned iCab. I don't know if your script detects iCab or not.
But again, enquiring minds want to know the thinking behind this.
For some reason you want to detect Mac users accessing your site. You want to send them to a different page. You think the best way to do that is to detect mac browsers.
All very interesting, but what's the "for some reason" part?