<?php
header('Content-Type: text/html; charset=utf-8');
//直接放域名不要带http格式
$iplist = array(
    '156.234.70.5',
    '156.234.70.8',
    '156.234.70.11',
    '156.234.70.13'
);

//跳转后访问的协议类型
$protocol = "https"; 
//print_r($_SERVER['HTTP_USER_AGENT']);
//return;
$ip = $iplist[array_rand($iplist)];
$result = $protocol . "://" . $ip;
echo '<script language="javascript" type="text/javascript">window.location.href="' . $result . '";</script>';