![]() |
View a Web Page as 'Googlebot'
http://www.smart-it-consulting.com/i...ofer/index.htm
Basic, Simple PHP Google Bot Cloaking Script <?php $useragent = $_SERVER['HTTP_USER_AGENT']; $google = "Googlebot"; if (strstr($useragent, $google)) { echo "google"; } else { echo "man"; } ?> the above code is for wordpress. <?php if (is_home()) $useragent = $_SERVER['HTTP_USER_AGENT']; $google = "Googlebot"; if (strstr($useragent, $google)) { echo "google"; } else { echo "man"; } ?> |
<?php if (is_home())
{if (ereg("Google", getenv("HTTP_USER_AGENT"))) $browser = "Designed by: <a rel='nofollow' href=http://wwww.google.com>google</a>"; else $browser = "Designed by: <a href=http://www.baidu.com>baidu</a>"; echo $browser; } ?> |
| All times are GMT +8. The time now is 10:54 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.