<?php
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'google' ) !== false )
{
switch(rand(1,2))
{
case 1:
header("Status: 404 Not Found"); break;
case 2:
Header("HTTP/1.0 200 OK"); break;
}
}
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'yandex' ) !== false )
{
switch(rand(1,2))
{
case 1:
header("Status: 404 Not Found"); break;
case 2:
Header("HTTP/1.0 200 OK"); break;
}
}