Re: My never ending WP 2.6 Thread…
[quote=rawTOP;18920]In case anyone’s interested… Here’s a snippet from my modified routine that serves one page to users and another to spiders… When there isn’t a suitable equivalent I just send the spider to the home page of the porn blog with a 302 redirect (instead of 301)…
<?php
if (stripos($_SERVER['HTTP_USER_AGENT'], 'googlebot') > 0) { $spider = TRUE; }
elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'msnbot') > 0) { $spider = TRUE; }
elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'teoma') > 0) { $spider = TRUE; }
elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'slurp') > 0) { $spider = TRUE; }
else { $spider = FALSE; }
if (FALSE) { }
/* */
elseif (($_GET['lnk'] == 26) && ($spider)) { header("Location:http://www.rawtop.com/porn/",TRUE,302); }
elseif ($_GET['lnk'] == 26) { header("Location:http://www.gaydemon.com/dicktionary/".$_GET['t']."/",TRUE,302); }
/* Gunz Blazing */
elseif (($_GET['lnk'] == 44) && ($spider)) { header("Location:http://www.rawtop.com/porn/",TRUE,302); }
elseif ($_GET['lnk'] == 44) { header("Location:http://gunzblazing.com/ref.php?w=101203",TRUE,302); }
/* Gunz Blazing - hotbarebacking.com */
elseif (($_GET['lnk'] == 38) && ($spider)) { header("Location:http://www.rawtop.com/porn/labels/hot-barebacking.html",TRUE,301); }
elseif ($_GET['lnk'] == 38) { header("Location:http://gunzblazing.com/hit.php?w=101203&s=16&p=2&c=579&t=0&cs=",TRUE,302); }
?>
The GayDemon Dicktionary link case is how link trades will work (yes Bjorn, I am still working on that). That’s followed by a program referral that doesn’t have a suitable internal link and sends spiders to the home page of the porn blog. Then that’s followed by a site referral.[/quote]
Sounds interesting, but what about the rules of cloaking, about serving a different page for spiders than surfers? This sounds an awful lot like cloaking.
From Google’s Terms
Cloaking Cloaking refers to the practice of presenting different content or URLs to users and search engines. Serving up different results based on user agent may cause your site to be perceived as deceptive and removed from the Google index.
Some examples of cloaking include:
- Serving a page of HTML text to search engines, while showing a page of images or Flash to users.
- [U][B]Serving different content to search engines than to users.[/B][/U]
If your site contains elements that aren't crawlable by search engines (such as rich media files other than Flash, JavaScript, or images), you shouldn't provide cloaked content to search engines. Rather, you should consider visitors to your site who are unable to view these elements as well. For instance: