You are here: Re: Can you avoid that googlebot indexes PHPSESSID pages? « PHP Programming Language « IT news, forums, messages
Re: Can you avoid that googlebot indexes PHPSESSID pages?

Posted by CAH on 04/04/06 13:40

> I wouldn't expect all (or even most) robots to be easily identified
by
> the user-agent. Maybe you could make an array of the most common ones
> (Googlebot, Inktomi, etc) and loop through it with the logic I
> suggested. I also don't think you could check to see if it's a browser,
> because firewalls & proxy servers may not send that information through.

I see what you mean.

Do you think this solution will work?

"Using .htaccess often, you need to put the following two lines in the
..htaccess file, if your host is using PHP as an Apache module:

php_value session.use_only_cookies 1
php_value session.use_trans_sid 0 "

I think it does, and even though you then have to rely on cookies, I
think it is the better solution because today this is a small minus,
compared to search engine problems.

If this solutions works

User-agent: Googlebot
Disallow: /*PHPSESSID

it would be by far the simplest, I do however not feel to sure that it
does work, and have no opportunity to check it at this time.

Regards
Mads

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация