对蜘蛛屏蔽友情链接,避免抓取代码
<?php $age = strtolower($_SERVER["HTTP_USER_AGENT"]); if (!preg_match("'/^spider/'", $age)&&!preg_match("'/^bot/'", $age)) { ?> <div id="footer-links"><ul><li>友情链接:</ul></div> <?php };?>
<?php $age = strtolower($_SERVER["HTTP_USER_AGENT"]); if (!preg_match("'/^spider/'", $age)&&!preg_match("'/^bot/'", $age)) { ?> <div id="footer-links"><ul><li>友情链接:</ul></div> <?php };?>