I run a site which has a age verification splash page that displays itself if the user doesn't have the certain cookie. I'm having trouble creating a sitemap that indexes my full site because it seems to index only my age validation page. Is there any cure for this? Thanks!
Sekka
10:43 pm on Feb 4, 2009 (gmt 0)
Detect the user agent and let them in if they are a search engine or custom app?
$_SERVER['HTTP_USER_AGENT']
aidiedegreez
4:12 pm on Feb 5, 2009 (gmt 0)
I've been able to find the script to detect if a visitor is a search engine spider based on their USER AGENT as stated above, but I'm unsure how to "let them in" once it's detected? I was thinking about doing setcookie but I was informed that search engine spiders wouldn't be able to store these? Is there another way to let them in? Thanks!
Sekka
3:04 pm on Feb 6, 2009 (gmt 0)
If the website redirects back to the verifiation when missing a cookie/session then you will be out of look SEO wise. Most websites that do this suffer with SEO, same as websites that require logins.
Depending on whast required, you could remove this session/cookie check and just have the splash page, and simply redirect bots past it.