View Single Post
Old 03-08-2006, 05:46 PM  
QualityMpegs
Confirmed User
 
Join Date: Feb 2003
Location: Orlando, Florida
Posts: 3,521
or, i guess you could just cloak your page
Code:
<?php

function redirect($loc, $ref)
{

   if (strstr(strtolower($ref), 'google.')
      || strstr(strtolower($ref), 'yahoo.')
      || strstr(strtolower($ref), 'msn.')
      || strstr(strtolower($ref), 'altavista.')
      || strstr(strtolower($ref), 'ask.')
      || strstr(strtolower($ref), 'aol.')
      || strstr(strtolower($ref), 'looksmart.')
      || strstr(strtolower($ref), 'dogpile.')
      || strstr(strtolower($ref), 'lycos.')
      || strstr(strtolower($ref), 'netscape.')
      || strstr(strtolower($ref), 'hotbot.')
      || strstr(strtolower($ref), 'alltheweb.')
      || strstr(strtolower($ref), 'freeserve.'))
   {
      header("Location: $loc");
   }
}
?>
To call it from any page of your website, or from a template, save the above file as cloak.php (or whatever) and put this code at the top of the page:
Code:
<?php
ob_start();

include("cloak.php");

$ref = $HTTP_REFERER;
redirect("http://www.urltoredirect.com", $ref);

ob_end_flush();
?>
__________________

PAYSITES CATEGORIZED AND THUMBNAILED BY NICHE - 69767780
QualityMpegs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote