代码语言:javascript复制
<?php
if( $_SERVER['HTTP_REFERER'] == "" )
{
header('HTTP/1.1 403 Forbidden');
header("Content-Type:text/html;charset=utf-8");
echo '<body style="overflow:-Scroll;overflow-y:hidden" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000"><br></br></br></br>
<P align=center><FONT face=楷体_GB2312 size=6><B><font color="#FF0000">调用方式不正确请用iframe框架访问</font></FONT></P></B>';
exit;
}
?>