At a webshop I'm currently working on I have several links that show a fancybox with product information.
The link works without ajax, it shows the same content as the fancybox links etc will not work.
My question is this, is it considered bad/blackhat to redirect everyone except googlebot back to the page showing the link with a parameter that calls up the fancybox.
eg:
if (($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") && !preg_match("#(google|slurp@inktomi|yahoo! slurp|msnbot)#si", $_SERVER['HTTP_USER_AGENT'])) {
header("HTTP/1.1 302 Found");
header("location: " . conf("url:site")."index.php?menu_id=".$_GET['menu_id']."&idproduct=".$_GET['idproduct']."&idlist=".$_GET['idlist']."&fb=1");
die();
}