It’s easy !
Just include the framework in a php file:
require_once(“framework/framework.php”);
then test if it’s google
without cache version (all live !)
1 2 3 4 5 6 7 8 |
$testWithoutCache = new cloaking($_SERVER['REMOTE_ADDR'], $_SERVER['HTTP_USER_AGENT']); if ($testWithoutCache->checkIfCloakingOk($cache = false)){ echo "google content"; } else { echo "user content"; } |
with cache version (faster detect !)
1 2 3 4 5 6 7 8 |
$testWithCache = new cloaking($_SERVER['REMOTE_ADDR'], $_SERVER['HTTP_USER_AGENT']); if ($testWithCache->checkIfCloakingOk($cache = true, $linkDb, $ipRange)){ echo "google content"; } else { echo "user content"; } |