Tag Archive for ipod

How To Connect To A SOCKS Proxy From An Unjailbroken iPhone/iPod Touch

function FindProxyForURL(url, host) {
return "SOCKS 192.168.xx.xx:yyyy";
}

source

iPhone/iPod Touch detection

if(window.navigator.userAgent.match(/(CPU iPhone OS)/))
document.write('This is a iPhone or iPod Touch!');
else
document.write('This is NOT a iPhone or iPod Touch!');

source

iPhone & iPod Detection

if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
{
header('Location: <a href="http://yoursite.com/iphone" >http://yoursite.com/iphone</a>');
exit();
}

source