Page is a not externally linkable
- Marketing and Biz Dev
-- Cloaking
---- Redirect - Need help!


volatilegx - 2:23 pm on Aug 17, 2006 (gmt 0)


To accomplish what you want to do, write or use a cloaking script. Here is some psuedo code:

<?php
// Do a database lookup to see if the visitor's
// IP address is in your database of search engine
// spiders.
$query = "SELECT IP FROM SPIDERS WHERE IP = '".addslashes($REMOTE_ADDR;)."' LIMIT 1";
$result = mysql_query($query);
$spider = mysql_num_rows($result);
if (!$spider){
// no match is found, so the visitor is a human
// do the redirect
header("Location: [whatever.com...]
exit;
}

// A match was found in the database, which means
// the visitor is a search engine spider.
// Continue to display the rest of the page.

?>

There are ready-made solutions available for this if you don't feel like coding your own.


Thread source:: http://www.webmasterworld.com/cloaking/3049951.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com