时间:2021-07-01 10:21:17 帮助过:20人阅读
function getUrl($address, $myip) { ob_start(); $mtime = explode(' ', microtime()); $starttime = $mtime[1] + $mtime[0]; $onoff = (function_exists('ini_get')) ? ini_get('register_globals') : get_cfg_var('register_globals'); if($onoff != 1) { @extract($_POST, EXTR_SKIP); @extract($_GET, EXTR_SKIP); } $self = $_SERVER['PHP_SELF']; $myaddress = 'http://'.$_SERVER['HTTP_HOST'].$self; $comm = ''; if(isset($url) && $url) { $url = str_replace($address, '', $url); } $pcomm = ''; foreach($_POST as $key => $val) { if($pcomm == '') { $pcomm .= $key.''.urlencode($val); } else { $pcomm .= $pcomm.'&'.$key.'='.urlencode($val); } } foreach($_GET as $key => $val) { if($key != 'url') { if($comm == '') { $comm = $key.'='.rawurlencode($val);
相关推荐:
referer PHP伪造referer实例代码
php伪造referer 使用referer防止图片盗链
PHP伪造referer实例代码
以上就是PHP伪造来路信息实例方法的详细内容,更多请关注Gxl网其它相关文章!