Forum Moderators: martinibuster
if you have php, do the following:
<?
if(robot())
{
// proceed as though the visitor (bot) is already logged in
}
else
{
// proceed as you're doing today
}
function robot()
{
global $HTTP_USER_AGENT, $REMOTE_ADDR;
if(stristr($HTTP_USER_AGENT),"mediapartners-google") return true;
// you may want to allow other robots like googlebot, yahoo, msn so your forum pages get indexed.
}
?>
in the robot check you may also want to check the remote address in addition to the user-agent. this will prevent spoofers from getting in
good luck
in the robot check you may also want to check the remote address in addition to the user-agent. this will prevent spoofers from getting in
You should primarily check on address. This is why you should discuss this with Goolge, to make sure you are checking on the right addresses. User agent string can be spoofed and should be considerd as for information only.