How many iPhone Visitors have you had?
I was curious if anyone was using an iPhone to read my blog yet, I'm sure before too long we will all be optimizing our sites for 3.5" displays. To find out I did a little
grep on my Apache log file and piped it to
wc to count the number of matches:
fgrep 'iPhone;' access.log | wc -l
So far 370 hits including images, to take out requests for images I added:
fgrep 'iPhone;' access.log | fgrep --invert-match images | wc -l
That yields 106 requests, hello iPhone readers...
BTW the user agent for the iPhone looks like this:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
Like this? Follow me ↯Tweet Follow @pfreitag
How many iPhone Visitors have you had? was first published on July 19, 2007.