$url问题帮助?
我做了个定向链接,其中的Please click <a href=\"{$url}\">here.</a>可以看见真实网址,怎样添加代码隐藏真实网址呢?谢谢!
<?php /* ===================================================== redirect.php ===================================================== */ function reset_url($url) { $value = str_replace ( "http://", "", $url ); $value = str_replace ( "www.", "", $value ); $value = explode ( "/", $value ); $value = reset ( $value ); return $value; } $url = rawurldecode ( $_GET['url'] ); $url = @base64_decode ( $url ); $url = str_replace ( "&", "&", $url ); $_SERVER['HTTP_REFERER'] = reset_url ( $_SERVER['HTTP_REFERER'] ); $_SERVER['HTTP_HOST'] = reset_url ( $_SERVER['HTTP_HOST'] ); if (($_SERVER['HTTP_HOST'] != $_SERVER['HTTP_REFERER']) or $url == "") { @header ( 'Location: /index.php' ); die ( "Access denied!!!<br /><br />Please visit <a href=\"/index.php\">{$_SERVER['HTTP_HOST']}</a>" ); } @header ( 'Location: ' . $url ); die ( "Link Redirect:<br /><br />Please click <a href=\"{$url}\">here.</a>" ); ?>