I think preg_match is what you would use in php, (I'm a perl coder not php)
edit: try this?
Code:
if(preg_match("/googlebot/i", $_SERVER['HTTP_USER_AGENT']) != 1){
session_start();
}
More Information:
- This is different from IE6, where there doesn't seem to be any way of removing session cookies
- File Format: WAP WML - View as HTMLIn the Robot list, click Googlebot
- Don't use a parameter named “id=” in a URL for anything other than a session ID
- If Googlebot requests a page in our store directly it does not have
- 1 post - Last post: Feb 25, 2009How to disable Google bot indexing with session based crawling?For example if anybody join to my site, my site makes a session id and creates an english language cookie
- I need to prevent Googlebot from indexing product pages without session id data
- Googlebot's is "Googlebot", and the other search engines use a similar sort of thing
Bookmarks