你可以避免googlebot索引PHPSESSID页面吗? [英] Can you avoid that googlebot indexes PHPSESSID pages?
问题描述
嗨
你能避免googlebot索引PHPSESSID页吗? Googlebot是使用PHPSESSID对页面进行索引编制的,这使得它认为我的页面有无限数量的页面。如何才能避免这种情况?
以下是谷歌注册的网址示例,可能会更加清楚
更清楚发生了什么
http://www.winches.dk /winches.php?ar...6f0d46334659ff ...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea ...
我用的是会话注册了ID,但是如果我访问我的网站,我从来没有看到那些
类型的网址?那么google如何获得它们呢?
祝你好运
Mads
Hi
Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is
indexing pages with PHPSESSID, which makes it think my page has a
infinite number of pages. How can one avoid this?
Here is an exsample of url that google register, that might make is
more clear what is happening
http://www.winches.dk/winches.php?ar...6f0d46334659ff...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea...
I do use session registred ID, but if I visit my site I never see those
kind of urls? So how come google gets a hold of them?
Best regards
Mads
推荐答案
CAH写道:
嗨
你能避免googlebot索引PHPSESSID页面吗? Googlebot正在使用PHPSESSID索引页面,这使得它认为我的页面具有无限数量的页面。如何避免这种情况?
以下是谷歌注册的网址示例,可能会更清楚发生了什么
http://www.winches.dk/winches.php?ar .. .6f0d46334659ff ...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea ...
我确实使用会话注册的ID,但如果我访问我的网站,我从不看到那些网址?那么为什么Google会抓住它们呢?
最好的问候
Mads
Hi
Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is
indexing pages with PHPSESSID, which makes it think my page has a
infinite number of pages. How can one avoid this?
Here is an exsample of url that google register, that might make is
more clear what is happening
http://www.winches.dk/winches.php?ar...6f0d46334659ff...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea...
I do use session registred ID, but if I visit my site I never see those
kind of urls? So how come google gets a hold of them?
Best regards
Mads
http://www.php.net/manual/en/ref.session.php
-
==================
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
js ******* @ attglobal.net
==================
http://www.php.net/manual/en/ref.session.php
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
CAH写道:
嗨
你能避免googlebot索引PHPSESSID页面吗? Googlebot正在使用PHPSESSID索引页面,这使得它认为我的页面具有无限数量的页面。怎么能避免这种情况?
好吧,解决这个问题的一种方法是检查User-Agent标题,看看
,如果客户端是Googlebot而不是启用会话。显然,如果页面
依赖于会话,那么它就不再是可索引的了。
这是google注册的url示例,可能会更多
更多清除发生的事情
http://www.winches.dk/winches.php?ar...6f0d46334659ff ...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea ...
Hi
Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is
indexing pages with PHPSESSID, which makes it think my page has a
infinite number of pages. How can one avoid this?
Well, one way to handle this is to check the User-Agent header to see
if the client is Googlebot and not enable session. Obviously if a page
is dependent on session then it ceases to be indexible.
Here is an exsample of url that google register, that might make is
more clear what is happening
http://www.winches.dk/winches.php?ar...6f0d46334659ff...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea...
I do use session registred ID, but if I visit my site I never see those
kind of urls? So how come google gets a hold of them?
如果启用了session.use_trans_sid,则PHP会尝试补偿
缺乏通过将会话ID插入任何可能的链接来实现cookie。
我认为你手上有一个很大的问题。一旦这些链接出现在Google的数据库中,机器人将继续返回它们。您将需要
检测到这种情况并告诉Googlebot嗡嗡声,这样就不会因为您的带宽配额而无法获得支付。
>
CAH skrev:
CAH skrev:
嗨
你能避免使用googlebot索引吗? PHPSESSID页面? Googlebot正在使用PHPSESSID索引页面,这使得它认为我的页面具有无限数量的页面。如何避免这种情况?
以下是谷歌注册的网址示例,可能会更清楚发生了什么
http://www.winches.dk/winches.php?ar .. .6f0d46334659ff ...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea ...
我确实使用会话注册的ID,但如果我访问我的网站,我从不看到那些网址?那么谷歌如何得到它们呢?
最好的问候
Mads
Hi
Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is
indexing pages with PHPSESSID, which makes it think my page has a
infinite number of pages. How can one avoid this?
Here is an exsample of url that google register, that might make is
more clear what is happening
http://www.winches.dk/winches.php?ar...6f0d46334659ff...
http://www.winches.dk/winches.php?ar...b6aed41fc142ea...
I do use session registred ID, but if I visit my site I never see those
kind of urls? So how come google gets a hold of them?
Best regards
Mads
我现在正在测试这个解决方案
"经常使用.htaccess,如果你的主机使用PHP作为Apache,你需要在
..htaccess文件中放入以下两行。模块:
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0"
缺点是我的网站现在只在用户拥有cookie时才起作用
启用,我仍然不确定这是否可以解决问题。
I am now testing this as a solution
"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 "
The downside is my site now only functions when user has cookies
enabled, and I am still not sure whethers this will do the trick.
这篇关于你可以避免googlebot索引PHPSESSID页面吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!